/* เริ่มเรียนบาลีที่นี่ — /start
   ต่อยอดจาก sets.css + daily.css (หัวเรื่อง · ตัวแปรสี --eb-*) · สีประจำวิชาส่งมาทาง --c ชุดเดียวกับ /777 */

.st-shell { max-width: 860px; }
.st-hero { align-items: center; margin-top: 1rem; }
.st-here { color: var(--eb-primary); margin-left: .12em; }

/* นับถอยหลังถึงวันสอบ */
.st-count { margin: 0; display: grid; gap: .1rem; text-align: center; background: #fff; border: 1px solid var(--eb-line);
	border-radius: 16px; padding: .7rem 1.2rem; box-shadow: 0 12px 28px -20px rgba(49, 46, 129, .5); }
.st-count[hidden] { display: none; }
.st-count span { font-size: .8rem; color: var(--eb-ink-soft); }
.st-count b { font-size: 1.5rem; font-weight: 800; color: var(--eb-ink); line-height: 1.2; }
.st-count i { font-style: normal; color: var(--eb-primary); font-variant-numeric: tabular-nums; }

/* ── วันนี้ของฉัน ── */
.st-today { background: #fff; border: 2px solid var(--eb-primary); border-radius: 22px; padding: 1rem 1rem 1.05rem;
	box-shadow: 0 18px 40px -22px rgba(49, 46, 129, .55); margin-bottom: 1.4rem; }
.st-today-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin-bottom: .75rem; }
.st-today-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--eb-ink); }
.st-today-head h2 i { color: var(--eb-gold, #f5b301); margin-right: .15em; }
.st-today-head p { margin: 0; font-size: .9rem; color: var(--eb-ink-soft); }

.st-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.st-task { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem;
	background: color-mix(in srgb, var(--c) 5%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); border-radius: 16px; padding: .7rem .8rem; }
.st-min { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 14px; background: #fff;
	border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); font-size: .72rem; font-weight: 700; line-height: 1.1;
	color: color-mix(in srgb, var(--c) 80%, #0f172a); align-content: center; }
.st-min b { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.st-task-body { min-width: 0; }
.st-task-body h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--eb-ink); line-height: 1.35; }
.st-task-body h3 i { color: var(--c); font-size: .95em; margin-right: .2em; }
.st-how { margin: .1rem 0 .15rem; font-size: .88rem; color: var(--eb-ink-soft); line-height: 1.5; }
.st-done { margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .7rem; font-size: .78rem; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #0f172a); }
.st-tick { color: var(--eb-emerald); }
.st-tick[hidden] { display: none; }

/* ปุ่มของวิชา — รูปเดียวกับ .c7-go ของ /777 */
.st-go { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .7rem; min-width: 9.5rem; max-width: 13rem; text-decoration: none;
	background: var(--c); color: #fff; border-radius: 14px; padding: .55rem .9rem; transition: filter .15s, transform .15s; }
.st-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.st-go:focus-visible { outline: 3px solid color-mix(in srgb, var(--c) 40%, #fff); outline-offset: 2px; }
.st-go-k { font-size: .72rem; font-weight: 700; opacity: .9; }
.st-go-v { grid-column: 1; font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.st-go-t { grid-column: 1; font-size: .76rem; opacity: .92; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-go-t:empty { display: none; }
.st-go i { grid-row: 1 / span 3; grid-column: 2; }
.st-task.is-today { background: var(--eb-emerald-soft); border-color: #6ee7b7; }
.st-task.is-finished .st-go { background: var(--eb-emerald); }
@media (prefers-reduced-motion: reduce) { .st-go { transition: none; } }

.st-rule { margin: .8rem 0 0; font-size: .86rem; line-height: 1.6; color: var(--eb-ink); background: var(--eb-primary-wash); border-radius: 12px; padding: .6rem .8rem; }
.st-rule i { color: var(--eb-primary); margin-right: .25em; }

@media (max-width: 560px) {
	.st-task { grid-template-columns: auto 1fr; }
	.st-go { grid-column: 1 / -1; max-width: none; }
}

/* ── บล็อกเนื้อหา ── */
.st-block { margin-bottom: 1.5rem; }
.st-block > h2 { margin: 0 0 .65rem; font-size: 1.2rem; font-weight: 800; color: var(--eb-ink); line-height: 1.35; }

.st-proofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.st-proofs div { background: #fff; border: 1px solid var(--eb-line); border-radius: 16px; padding: .8rem .9rem .85rem; }
.st-proofs b { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--eb-primary); color: #fff; font-size: 1rem; }
.st-proofs h3 { margin: .45rem 0 .15rem; font-size: 1rem; font-weight: 800; color: var(--eb-ink); }
.st-proofs p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--eb-ink-soft); }

.st-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.st-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 700; text-decoration: none;
	padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--eb-line); background: #fff; color: var(--eb-primary); }
.st-link.is-main { background: var(--eb-primary); border-color: var(--eb-primary); color: #fff; }
.st-link:hover { filter: brightness(1.06); transform: translateY(-1px); }

.st-path { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: st; }
.st-path li { counter-increment: st; display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: start;
	background: #fff; border: 1px solid var(--eb-line); border-radius: 14px; padding: .7rem .9rem; }
.st-path li::before { content: counter(st, thai); grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--eb-primary-wash); color: var(--eb-primary); font-weight: 800; }
.st-path b { font-size: 1rem; font-weight: 800; color: var(--eb-ink); }
.st-path span { grid-column: 2; font-size: .88rem; line-height: 1.55; color: var(--eb-ink-soft); }

.st-help { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .6rem; }
.st-help a { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start; height: 100%; text-decoration: none;
	background: #fff; border: 1px solid var(--eb-line); border-radius: 14px; padding: .75rem .9rem; transition: border-color .15s, transform .15s; }
.st-help a:hover { border-color: var(--eb-primary); transform: translateY(-1px); }
.st-help i { grid-row: 1 / span 2; font-size: 1.25rem; color: var(--eb-primary); padding-top: .15rem; width: 1.5rem; text-align: center; }
.st-help b { font-size: .96rem; font-weight: 800; color: var(--eb-ink); }
.st-help span { grid-column: 2; font-size: .84rem; line-height: 1.5; color: var(--eb-ink-soft); }
