/* Урок Просто — раздел «Техкарты» (up-seo.css, 06.11): каталог, предмет, класс, предмет × класс. Подключать после up-pub.css.
   Из принятого: крошки up-docs-crumbs, карточка up-card, заголовок up-acct-sec-t, строки up-acct-kv, вопросы up-faq, кнопки, ссылка up-link.
   Кандидаты в ДС: таблица «предмет × класс» (up-seo-mx), плитки «Чаще всего ищут» и классов, пример урока с таблицей этапов (up-seo-st),
   список тем с кнопкой (up-seo-topics), чипы соседних страниц (up-seo-chip), строки-ссылки списка (up-seo-li), призыв (up-seo-cta). */

.up-seo { gap: 22px; }
.up-seo-crumbs { margin: -4px 0 -6px; }
.up-seo-crumbs .up-docs-crumb { text-decoration: none; }  /* в «Моих документах» крошки — кнопки, здесь — ссылки */
.up-seo-crumb-now { cursor: default; color: var(--ink); }
.up-seo-crumb-now:hover { background: transparent; color: var(--ink); }
.up-seo-crumb-cap { margin: 0 0 -10px; text-align: center; color: var(--ws-accent-ink); }
.up-seo-h1 { font-size: 40px; line-height: 46px; text-wrap: balance; }
.up-seo .up-lead { max-width: 720px; }
.up-seo-intro { display: grid; gap: 10px; justify-items: center; }
.up-seo-intro .up-acct-hint { margin: 0; }

.up-seo-card { gap: 16px; padding: 24px 26px; }
.up-seo-head { display: grid; gap: 4px; }
.up-seo-head.is-center { justify-items: center; text-align: center; }
.up-seo-sub { margin: 0; font-size: 14.5px; line-height: 21px; color: var(--text-2); text-wrap: pretty; }
.up-seo-sec { display: grid; gap: 14px; }
.up-seo-row-h { margin: 0; font-size: 15.5px; line-height: 22px; font-weight: 700; color: var(--ink); }

/* ---------- каталог: «Чаще всего ищут» — плитки, классы — плитки с номером ---------- */
.up-seo-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.up-seo-tile { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 14px 14px 14px 18px; color: var(--ink); text-decoration: none;
  transition: transform .18s var(--ease-out), box-shadow .18s; }
.up-seo-tile b, .up-seo-tile span span { display: block; }
.up-seo-tile b { font-size: 15.5px; line-height: 21px; font-weight: 700; }
.up-seo-tile span span { font-size: 13.5px; line-height: 19px; color: var(--text-2); }
.up-seo-tile > svg { color: var(--ws-icon); transition: transform .18s var(--ease-out), color .15s; }
.up-seo-tile:hover { transform: translateY(-2px); }
.up-seo-tile:hover > svg { color: var(--ws-accent); transform: translateX(2px); }
.up-seo-grades { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.up-seo-grade { justify-items: center; gap: 0; padding: 14px 8px 12px; color: var(--ink); text-decoration: none; transition: transform .18s var(--ease-out); }
.up-seo-grade b { font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.up-seo-grade span { font-size: 13px; line-height: 18px; color: var(--text-2); }
.up-seo-grade:hover { transform: translateY(-2px); color: var(--ws-accent-ink); }
.up .up-seo-tile:focus-visible, .up .up-seo-grade:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ws-accent); }

/* ---------- каталог: таблица «предмет × класс», ступени школы — подложкой колонок; на узком окне листается вбок ---------- */
.up-seo-mx-card { padding-bottom: 18px; }
.up-seo-mx-wrap { position: relative; margin: 0 -26px; padding: 0 26px; overflow-x: auto; scrollbar-width: thin; }  /* relative — скрытые подписи up-sr не растягивают страницу */
.up-seo-mx { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 20px; }
.up-seo-mx col.is-stage { background: var(--surface-2); }
.up-seo-mx-subj { width: 30%; }
.up-seo-mx th, .up-seo-mx td { padding: 4px 2px; text-align: center; }
.up-seo-mx-stages th { padding: 6px 4px 2px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.up-seo-mx-grades th { padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.up-seo-mx-grades th:first-child, .up-seo-mx tbody th { text-align: left; padding-left: 0; }
.up-seo-mx tbody tr + tr > * { border-top: 1px solid var(--line); }
.up-seo-mx tbody th { padding: 6px 12px 6px 0; font-weight: 600; white-space: nowrap; }
.up-seo-mx tbody th a { color: var(--ink); text-decoration: none; }
.up-seo-mx tbody th a:hover { color: var(--ws-accent-ink); }
.up-seo-cell { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; transition: border-color .15s, color .15s, transform .15s var(--ease-out); }
a.up-seo-cell:hover { border-color: var(--ws-accent); color: var(--ws-accent-ink); transform: translateY(-1px); }
.up-seo-cell.is-none { width: 6px; height: 6px; border: 0; border-radius: 3px; background: var(--line-strong); }
.up .up-seo-cell:focus-visible { outline: none; border-color: var(--ws-accent); box-shadow: inset 0 0 0 1px var(--ws-accent); }

/* ---------- списки: классы предмета / предметы класса — строки-ссылки в две колонки ---------- */
.up-seo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 24px; }
.up-seo-li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none; }
.up-seo-li b { font-size: 15px; line-height: 21px; font-weight: 600; white-space: nowrap; }
.up-seo-li span { min-width: 0; font-size: 13.5px; line-height: 19px; color: var(--text-2); }
.up-seo-li svg { color: var(--ws-icon); transition: transform .15s var(--ease-out), color .15s; }
.up-seo-li:hover b { color: var(--ws-accent-ink); }
.up-seo-li:hover svg { color: var(--ws-accent); transform: translateX(2px); }

/* ---------- темы по рабочей программе: тема и кнопка «Создать техкарту по этой теме» ---------- */
.up-seo-group { display: grid; gap: 10px; padding-top: 4px; }
.up-seo-group + .up-seo-group { padding-top: 16px; border-top: 1px solid var(--line); }
.up-seo-topics { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.up-seo-topics li { border-top: 1px solid var(--line); }
.up-seo-topics li:first-child { border-top: 0; }
/* 09.11 UX-разбор, п. 12: строка темы — ссылка целиком (как up-seo-li): тема слева, справа стрелка; «Создать техкарту» — при наведении и фокусе */
.up-seo-topic { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.up-seo-topics li:first-child .up-seo-topic { padding-top: 2px; }
.up-seo-topic-t { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 22px; text-wrap: pretty; transition: color .15s; }
.up-seo-topic-go { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 13.5px; line-height: 20px; font-weight: 600; color: var(--ws-accent); }
.up-seo-topic-go svg { color: var(--ws-icon); transition: transform .15s var(--ease-out), color .15s; }
@media (hover: hover) {
  .up-seo-topic-go { font-size: 0; gap: 0; }  /* подпись прячется до наведения, стрелка остаётся */
  .up-seo-topic:is(:hover, :focus-visible) .up-seo-topic-go { font-size: 13.5px; gap: 6px; }
}
.up-seo-topic:is(:hover, :focus-visible) .up-seo-topic-t { color: var(--ws-accent-ink); }
.up-seo-topic:is(:hover, :focus-visible) .up-seo-topic-go svg { color: var(--ws-accent); transform: translateX(2px); }
@media (hover: none) { .up-seo-topic-go { font-size: 0; gap: 0; } }
.up-seo-all { margin-left: 0; }

/* ---------- учебники ---------- */
.up-seo-umk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.up-seo-umk li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 21px; color: var(--ink); }
.up-seo-umk svg { margin-top: 3px; color: var(--ws-icon); }

/* ---------- пример урока: шапка, цель, таблица этапов ---------- */
.up-seo-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.up-seo-meta .up-acct-kv-r.is-wide { grid-column: 1 / -1; grid-template-columns: minmax(120px, calc((100% - 24px) * .17)) minmax(0, 1fr); }  /* подписи — по колонке половинных строк */
.up-seo-goal { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.up-seo-goal b { font-size: 14.5px; line-height: 20px; font-weight: 700; color: var(--ink); }
.up-seo-goal p { margin: 0; font-size: 14.5px; line-height: 22px; color: var(--ink); text-wrap: pretty; }
.up-seo-st-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 4px; }
.up-seo-st-hint { font-size: 13px; line-height: 18px; color: var(--text-2); }
.up-seo-st-wrap { margin: 0 -26px; padding: 0 26px; overflow-x: auto; scrollbar-width: thin; }
.up .up-seo-st-wrap:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ws-accent); border-radius: 12px; }
.up-seo-st { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; line-height: 19px; color: var(--ink); }
.up-seo-st th, .up-seo-st td { padding: 10px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.up-seo-st thead th { border-top: 0; padding-top: 6px; font-size: 12.5px; line-height: 17px; font-weight: 600; color: var(--text-2); }
.up-seo-st tbody th { font-weight: 600; min-width: 150px; }
.up-seo-st .is-num { width: 28px; padding-left: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.up-seo-st .is-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.up-seo-st tfoot th, .up-seo-st tfoot td { font-weight: 700; }
.up-seo-more { justify-self: start; }

/* ---------- «что внутри документа»: шесть пунктов сеткой ---------- */
.up-seo-inside { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px 24px; }

/* ---------- соседние страницы: чипы-ссылки ---------- */
.up-seo-row { display: grid; gap: 10px; }
.up-seo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.up-seo-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; line-height: 20px;
  color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
.up-seo-chip:hover { border-color: var(--ws-accent); color: var(--ws-accent-ink); }
.up .up-seo-chip:focus-visible { outline: none; border-color: var(--ws-accent); box-shadow: inset 0 0 0 1px var(--ws-accent); }
.up-seo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; color: var(--text-2); }
.up-seo-links .up-link { margin-left: 0; }

/* ---------- вопросы и призыв ---------- */
.up-seo-faq { display: grid; gap: 14px; }
.up-seo-faq-h { font-size: 24px; line-height: 30px; text-wrap: balance; }
.up-seo-cta { justify-items: center; gap: 12px; padding: 36px 28px; text-align: center;
  background: radial-gradient(520px 220px at 50% 0, rgba(var(--up-indigo), .16), transparent 70%), var(--surface); }
.up-seo-cta-h { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 34px; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.up-seo-cta .up-acct-text { max-width: 520px; color: var(--text-2); }
.up-seo .up-btn.is-lg, .up-seo .up-docs-ghost.is-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.up-seo-strip { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 16px 20px; }
.up-seo-strip p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); text-wrap: pretty; }

@media (max-width: 879px) {
  .up-seo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .up-seo-h1 { font-size: 28px; line-height: 34px; }
  .up-seo-tile { padding: 12px 10px 12px 14px; }
  .up-seo-card { padding: 20px 18px; }
  .up-seo-mx-wrap, .up-seo-st-wrap { margin: 0 -18px; padding: 0 18px; }
  .up-seo-meta { grid-template-columns: minmax(0, 1fr); }
  .up-seo-meta .up-acct-kv-r.is-wide { grid-template-columns: minmax(0, 1fr); }
  .up-seo-strip { grid-template-columns: 40px minmax(0, 1fr); }
  .up-seo-strip > .up-btn { grid-column: 1 / -1; justify-content: center; }
  .up-seo-cta { padding: 28px 18px; }
  .up-seo-cta-h { font-size: 23px; line-height: 29px; }
  .up-seo-cta .up-btn, .up-seo-cta .up-docs-ghost, .up-seo-intro .up-btn, .up-seo-intro .up-docs-ghost { width: 100%; justify-content: center; }
  .up-seo-topic { gap: 12px; }
  .up-seo-faq-h { font-size: 21px; line-height: 27px; }
}
