/* Daily Sunnah: today's situation, the progress ring, the quiz and the situation cards. */
.sn-today-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-block-end: 1.25rem; }
.sn-progress { display: flex; align-items: center; gap: .75rem; padding-block: .55rem .55rem; padding-inline: .6rem 1rem; border-radius: 999px; background: var(--lf-card); border: 1px solid var(--lf-card-line); box-shadow: var(--lf-shadow); }
.sn-progress svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.sn-ring-bg { fill: none; stroke: var(--lf-accent-soft); stroke-width: 5; }
.sn-ring { fill: none; stroke: var(--lf-accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .6s var(--ip-ease, ease); }
.sn-progress div { display: flex; flex-direction: column; line-height: 1.2; }
.sn-progress span { font-size: .8rem; color: var(--lf-muted); }

.sn-today .lf-scn { border-width: 2px; border-color: color-mix(in srgb, var(--lf-accent) 30%, var(--lf-card-line)); background: linear-gradient(180deg, color-mix(in srgb, var(--lf-hero-c) 10%, var(--lf-card)), var(--lf-card) 40%); }
.sn-done-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-block: .25rem 0; }
[data-sn-practised][data-done] { background: #2f8a5b; color: #fff !important; }

.sn-quiz { display: grid; gap: .9rem; }
.sn-q { margin: 0; padding: 1.1rem 1.2rem; border-radius: 20px; background: var(--lf-card); border: 1px solid var(--lf-card-line); box-shadow: var(--lf-shadow); min-width: 0; }
.sn-q legend { float: inline-start; width: 100%; display: flex; gap: .6rem; align-items: baseline; font-size: 1.05rem; font-weight: 600; margin-block-end: .75rem; padding: 0; line-height: 1.45; }
.sn-q legend + * { clear: both; }
.sn-q-num { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lf-accent-soft); color: var(--lf-accent); font-size: .85rem; font-weight: 700; }
.sn-q-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .5rem; }
.sn-option { text-align: start; padding: .75rem .9rem; border-radius: 14px; border: 1.5px solid var(--lf-card-line); background: var(--lf-card); color: var(--lf-ink); line-height: 1.45; cursor: pointer; min-height: 48px; transition: border-color .2s, background-color .2s; }
.sn-option:hover:not([disabled]) { border-color: var(--lf-accent); }
.sn-option.is-right { border-color: #2f8a5b; background: rgba(47, 138, 91, .1); }
.sn-option.is-wrong { border-color: #d8a34a; background: rgba(216, 163, 74, .1); }
.sn-option[disabled] { cursor: default; }
.sn-q-explain { margin: .8rem 0 0; font-size: .95rem; line-height: 1.6; color: var(--lf-muted); }
.sn-quiz-end { text-align: center; font-weight: 600; color: var(--lf-accent); margin: .5rem 0 0; }
.sn-quiz-foot { display: flex; justify-content: flex-end; }

.sn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.sn-card { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.2rem; border-radius: 20px; background: var(--lf-card); border: 1px solid var(--lf-card-line); box-shadow: var(--lf-shadow); text-decoration: none; color: var(--lf-ink) !important; transition: transform .2s, box-shadow .2s; }
.sn-card[hidden] { display: none; }
.sn-card:hover { transform: translateY(-2px); box-shadow: var(--lf-shadow-hover); }
.sn-card-top { display: flex; align-items: center; gap: .55rem; }
.sn-card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--lf-accent-soft); color: var(--lf-accent); }
.sn-card-cat { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lf-accent); flex: 1; }
.sn-card-check { color: #2f8a5b; font-size: 1.15rem; display: none; }
.sn-card.is-done .sn-card-check { display: inline-flex; }
.sn-card strong { font-size: 1.04rem; line-height: 1.35; }
.sn-card-text { color: var(--lf-muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
