/* Трудоустройство выпускников: вкладки раздела, анкета выпускника, публичная статистика. */
.out-tabs { display: flex; gap: 0 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); font-size: 14px; }
.out-tabs a { color: var(--muted); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.out-tabs a:hover { color: var(--ink); }
.out-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.out-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.out-filters label { font-size: 13px; color: var(--muted); }
.out-filters input[type=date] { min-height: 36px; padding: 4px 8px; font-size: 13px; width: auto; }
tr.total td { font-weight: 700; border-top: 1px solid var(--field); background: var(--surface-2); }
.out-note { font-size: 13px; color: var(--muted); max-width: 72ch; margin: 0; }

/* Анкета: крупные зоны нажатия для телефона */
.survey { max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.survey fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.survey legend, .survey .q { font: 600 16px var(--f-display); margin-bottom: 6px; padding: 0; }
.survey .choices { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 14px; }
.survey .choices label { display: flex; gap: 10px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; color: var(--ink); }
.survey .choices label:last-child { border-bottom: 0; }
.survey .choices.inline { flex-direction: row; gap: 0 24px; border: 0; background: none; padding: 0; }
.survey .choices.inline label { border-bottom: 0; }
.survey input[type=radio], .survey input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-fill); flex: none; }
.survey input[type=text] { width: 100%; box-sizing: border-box; }
.survey .helptext { font-size: 13px; color: var(--muted); }
.survey .check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
.survey-work { display: flex; flex-direction: column; gap: 22px; }
.survey-work[hidden] { display: none; }
.survey-stop { max-width: 560px; margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.survey-stop button.link { font-size: 13px; min-height: 0; padding: 0; }
.survey-stop form { margin: 0; }

/* Публичная страница */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.pub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pub-card h2 { font-size: 22px; }
.pub-card .facts { border: 0; background: var(--surface-2); border-radius: var(--r-m); }
.pub-card .facts div:first-child { padding-left: 14px; }
.pub-card ul { margin: 0; padding-left: 18px; font-size: 14px; }

table.report-tbl th.num { min-width: 96px; }

/* Отчёт для МНВО на телефоне: строка — карточка, числа парами «подпись над числом», ни одна колонка не теряется */
@media (max-width: 640px) {
  table.report-tbl tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  table.report-tbl td, table.report-tbl td:first-child { position: static; box-shadow: none; background: none; display: flex; flex-direction: column; gap: 2px; font: 700 18px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
  table.report-tbl td::before { font: 500 12px/1.3 var(--f-body); color: var(--muted); }
  table.report-tbl td:nth-child(-n+3) { grid-column: 1 / -1; }
  table.report-tbl td:first-child { font: 500 13px var(--f-body); }
  table.report-tbl td:nth-child(2) { font: 650 16px/1.3 var(--f-body); margin-top: -8px; }
  table.report-tbl td:nth-child(2)::before { content: none; }
  table.report-tbl td:nth-child(3) { flex-direction: row; align-items: baseline; gap: 8px; font: 600 14px var(--f-body); margin-top: -6px; }
  table.report-tbl tr.total { background: var(--surface-2); }
  table.report-tbl tr.total td { background: none; border: 0; }
}

/* Подтверждение действия в диалоге (рассылка опросов) */
dialog.confirm { border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px 26px; max-width: 480px; width: calc(100% - 32px); background: var(--raised); color: var(--ink); box-shadow: var(--shadow); }
dialog.confirm::backdrop { background: var(--scrim); }
dialog.confirm h2 { font-size: 20px; margin: 0 0 10px; }
dialog.confirm p { margin: 0 0 10px; }
dialog.confirm .kpis { margin: 12px 0; }
dialog.confirm .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.out-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Опросы: почему рассылать нечего, кто не ответил, предпросмотр анкеты */
.out-why { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.filter-end { display: flex; gap: 8px; flex-wrap: wrap; }
#waiting { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
#waiting h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
#waiting .actions { margin: 0; }
.survey-preview { margin-bottom: 16px; }
/* Анкета в колонке документа (.doc-col, document.css) */
.doc-col .survey { max-width: none; gap: 28px; }
.doc-col .survey legend { font-size: var(--fs-sub); margin-bottom: 10px; }
.doc-col .survey .choices label { transition: color var(--t-quick) var(--ease-out); }
.doc-col .survey .choices label:has(:checked) { font-weight: 600; color: var(--accent); }
.doc-col .survey-stop { max-width: none; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* «Где работают выпускники» — тип «Документ» (docs/design/document/README.md): одно крупное число, график,
   программы строками, «Как мы считаем». Рамка, колонка и «Поделиться» — document.css. */
.doc-grad { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; }
.doc-grad > .doc-head { padding-bottom: 32px; }
.doc-years { display: inline-flex; flex-wrap: wrap; align-self: flex-start; margin-top: 24px; }
.doc-years a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.doc-years a:hover { color: var(--ink); }
.doc-years a[aria-current] { background: var(--seg-on); color: var(--ink); box-shadow: var(--seg-shadow); }
.doc-grad-hl { padding: 40px 0; border-top: 1px solid var(--line); }
.doc-big { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; margin: 0; }
.doc-big b { position: relative; font-size: clamp(76px, 12vw, 136px); font-weight: 800; letter-spacing: -.055em; line-height: .86; font-variant-numeric: tabular-nums; padding-bottom: 14px; }
.doc-big b::after { content: ""; position: absolute; left: 4px; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--gold); }
.doc-big span { flex: 1 1 260px; max-width: 26ch; padding-bottom: 14px; font-size: var(--fs-h3); font-weight: 650; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.doc-grad-fig { margin: 0 0 56px; }
.doc-grad h2 { margin: 0 0 8px; font-size: var(--fs-h2); }
.doc-progs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-progs > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc-prog-name h3 { margin: 2px 0 0; font-size: var(--fs-sub); }
.doc-prog-name .code { font-size: var(--fs-caption); color: var(--muted); }
.doc-prog-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.doc-prog-nums div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.doc-prog-nums dt { font-size: var(--fs-small); color: var(--muted); }
.doc-prog-nums dd { margin: 4px 0 0; font: 750 var(--fs-sub)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.doc-prog-nums small { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.doc-prog-emp { grid-column: 2; margin: 4px 0 0; font-size: var(--fs-small); }
.doc-prog-emp span { color: var(--muted); }
.doc-grad-method { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.doc-grad-method p { margin: 0; }
.doc-grad-method .out-note { font-size: var(--fs-body); color: var(--muted); }
.doc-grad-method .doc-share { margin-top: 10px; }
@media (max-width: 760px) {
  .doc-progs > li { grid-template-columns: minmax(0, 1fr); }
  .doc-prog-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .doc-prog-nums div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .doc-prog-emp { grid-column: 1; }
}
