/*
 * «جلسه به جلسه»: the sessions as rows (number, title and goal, the kinds of its steps, its count, a plus that turns
 * into a cross); the open one opens with its own height. Inside, from 1024 px, what it brings and its steps at the start
 * and one of its lesson cards at the end.
 */

.cch { padding-block: 0 var(--section); }
.cch-list { display: grid; gap: 10px; }
.cch-item { border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--d-default) ease, box-shadow var(--d-default) ease; }
.cch-item.on { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.cch-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; background: transparent; border: 0; color: var(--fg); text-align: start; transition: transform var(--d-press) var(--ease-out); }
.cch-row:active { transform: scale(0.995); }
.cch-no { display: grid; justify-items: center; min-width: 48px; font-size: var(--text-title-1); line-height: 1; font-weight: 800; }
.cch-no small { color: var(--fg-muted); font-size: var(--text-label); line-height: var(--lh-label); font-weight: 700; }
.cch-t { display: grid; gap: 3px; min-width: 0; }
.cch-t b { font-size: var(--text-title-3); line-height: var(--lh-title-3); font-weight: 800; }
.cch-t > span { color: var(--fg-muted); font-size: var(--text-footnote); line-height: var(--lh-footnote); }
.cch-kinds { display: flex; gap: 4px; }
.cch-kinds .i { width: 28px; height: 28px; padding: 6px; border-radius: 9px; background: var(--surface-muted); color: var(--fg-muted); }
.cch-count { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-muted); font-size: var(--text-label); font-weight: 700; white-space: nowrap; }
.cch-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-muted); transition: rotate var(--d-default) var(--ease-out), background-color var(--d-default) ease, color var(--d-default) ease; }
.cch-plus .i { width: 16px; height: 16px; }
.cch-item.on .cch-plus { rotate: 45deg; background: var(--fg); color: var(--on-fg); }
@media (max-width: 767px) { .cch-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px; } .cch-kinds, .cch-count { display: none; } }
@media (hover: hover) and (pointer: fine) { .cch-item:not(.on):hover { border-color: var(--line-strong); } }

.cch-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-enter) var(--ease-out); }
.cch-item.on .cch-panel { grid-template-rows: 1fr; }
.cch-in { display: grid; gap: 22px; min-height: 0; overflow: hidden; padding-inline: 18px; }
.cch-item.on .cch-in { padding-block-end: 20px; }
@media (min-width: 1024px) { .cch-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-inline: 82px 22px; } }
.cch-about { display: grid; gap: 18px; align-content: start; }
.cch-block { display: grid; gap: 10px; }
.cch-block > small, .cch-sample > small { color: var(--fg-muted); font-size: var(--text-label); line-height: var(--lh-label); font-weight: 800; }
.cch-learned { display: grid; gap: 6px; }
.cch-learned li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-callout); line-height: var(--lh-callout); font-weight: 600; }
.cch-learned .i { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--success); }
.cch-steps { display: grid; gap: 4px; }
.cch-steps li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: var(--text-footnote); line-height: var(--lh-footnote); }
.cch-steps li:nth-child(odd) { background: color-mix(in srgb, var(--surface-muted) 70%, transparent); }
.cch-sico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); }
.cch-sico .i { width: 15px; height: 15px; }
.cch-steps b { font-weight: 800; }
.cch-steps li > span:last-child { color: var(--fg-muted); }
.cch-guide { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--text-footnote); font-weight: 800; transition: transform var(--d-press) var(--ease-out); }
.cch-guide:active { transform: scale(0.97); }
.cch-guide .i { width: 16px; height: 16px; }
.cch-sample { display: grid; gap: 10px; align-content: start; }
