/* DUO-KF-004：商品比較、導流、FAQ、試算。以不超出視窗寬度為原則（320 px 單欄）。 */
.kf4 { margin: 2rem 0; min-width: 0; }
.kf4-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.kf4-opt { border: 1px solid #d9cfbf; border-radius: 12px; padding: 1rem; background: #fffaf0; min-width: 0; overflow-wrap: anywhere; }
.kf4-opt[aria-current="true"] { border-color: #1E2D52; box-shadow: 0 0 0 2px #1E2D52 inset; }
.kf4-opt__name { margin: .5rem 0 .25rem; font-size: 1.1rem; }
/* DUO-KF-005A：標題內的連結以 44 px 高的點擊區呈現（browser_e2e 的 tap-target 檢查）。 */
.kf4-opt__name a, .kf4-rec h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.kf4-thumb { display: block; width: 100%; height: auto; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.kf4-here { font-weight: 400; font-size: .85rem; }
.kf4-price-state { font-weight: 700; margin: 0 0 .5rem; }
.kf4-opt__facts { margin: 0 0 1rem; }
.kf4-opt__facts > div { padding: .4rem 0; border-top: 1px dashed #d9cfbf; }
.kf4-opt__facts dt { font-size: .85rem; color: #5a5347; }
.kf4-opt__facts dd { margin: 0; }
.kf4-opt__facts ul { margin: 0; padding-left: 1.1rem; }
.kf4-opt a:focus-visible, .kf4 a:focus-visible, .kf4-faq summary:focus-visible, .kf4-form :focus-visible { outline: 3px solid #1E2D52; outline-offset: 2px; }
.kf4-recs { border: 1px solid #d9cfbf; border-radius: 12px; padding: 1rem; background: #fffaf0; margin: 2rem 0; }
.kf4-rec { margin: 1rem 0; }
.kf4-steps { padding-left: 1.3rem; }
.kf4-next { padding-left: 1.1rem; }
.kf4-next li { margin: .4rem 0; overflow-wrap: anywhere; }
.kf4-faq { border: 1px solid #d9cfbf; border-radius: 8px; padding: .6rem .9rem; margin: .5rem 0; background: #fff; }
.kf4-faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.kf4-guide h2 { margin-top: 2rem; }
.kf4-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; align-items: end; margin-bottom: 1rem; }
.kf4-pricing .table-wrap { overflow-x: auto; max-width: 100%; }
/* DUO-KF-005B-FIX：精簡比較表與版本差異。site.css 在手機把 .act-table 換成卡片而隱藏表格；
   商店的版本比較表本身就是精簡版，手機也要顯示，所以明確覆寫顯示方式。 */
.kf4-compare .table-wrap { display: block; overflow-x: auto; max-width: 100%; }
.kf4-compare table.kf4-table { display: table; width: 100%; border-collapse: collapse; }
.kf4-compare table.kf4-table thead { display: table-header-group; }
.kf4-compare table.kf4-table tbody { display: table-row-group; }
.kf4-compare table.kf4-table tr { display: table-row; }
.kf4-compare table.kf4-table th, .kf4-compare table.kf4-table td { display: table-cell; padding: .5rem .6rem; border-top: 1px solid #d9cfbf; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
/* 點擊區至少 44×44 px（browser_e2e tap-target；先前窄欄只有 35 px 寬）。 */
.kf4-table th[scope="row"] a, .kf4-versions li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
/* WAVE2-D（第三批 A 併入）：site.css 在 699 px 以下把所有 .table-wrap 隱藏（商品活動表另有手機卡片）。
   FAQ 頁的「尚未決定事項」與 local 試算表沒有卡片版，手機上要照常顯示；兩欄短字的 FAQ 表不需要 480 px 最小寬度。 */
@media (max-width: 699px) {
  .kf4-guide .table-wrap, .kf4-pricing .table-wrap { display: block; }
  .kf4-guide .act-table { min-width: 0; }
}
@media (max-width: 480px) { .kf4-compare table.kf4-table { font-size: .9rem; } .kf4-compare table.kf4-table th, .kf4-compare table.kf4-table td { padding: .4rem .35rem; } }

/* RC2: immediate parent activities, independent of worksheet filter. */
.kf-play-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1rem; }
.kf-play-card { margin:0; }
.kf-play-card p { overflow-wrap:anywhere; }
a.kf-chip { display:inline-flex; align-items:center; text-decoration:none; color:inherit; }
a.kf-chip[aria-current="true"] { background:var(--color-ink); color:var(--color-on-dark); }
.kf-play-meta { font-size:.9rem; color:var(--color-ink-soft, #5b4636); margin-top:-.25rem; }
.jump-nav { flex-wrap: wrap; margin-top: .75rem; }
.cand-kind { scroll-margin-top: 5rem; }
#play-at-home { scroll-margin-top: 4rem; }
