/* ИСЦ «Сентябрь»: раздел «Методички вузов». Только токены из style.css. */

.mt-meta{ margin:.4rem 0 1.2rem; }

/* Фильтр на странице-каталоге */
.mt-filter{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 1.2rem; }
.mt-filter button{
  font:inherit; font-size:.95rem; cursor:pointer;
  padding:8px 16px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface); color:var(--purple-deep);
}
.mt-filter button:hover{ background:var(--purple-soft); }
.mt-filter button[aria-pressed="true"]{
  background:var(--purple); border-color:var(--purple); color:#fff;
}
.mt-filter button:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
.mt-cards [hidden]{ display:none !important; }
.mt-cards{ list-style:none; padding:0; margin:0; }
.mt-cards > li{ margin:0; display:flex; }
.mt-cards .card{ width:100%; display:flex; flex-direction:column; }
.mt-card__meta{ font-size:.9rem; color:var(--muted); margin:0 0 .8em; }

/* Библиографические записи */
.mt-records{ list-style:none; padding:0; margin:1.2rem 0; display:grid; gap:18px; }
.mt-record{
  margin:0; padding:20px 22px; background:var(--surface);
  border:1px solid var(--line); border-left:5px solid var(--gold); border-radius:10px;
}
.mt-record h3{ margin:0 0 .5em; font-size:1.12rem; }
.mt-record__text{
  margin:0 0 .8em; padding:12px 14px; background:var(--purple-soft);
  border-radius:8px; font-size:.97rem; overflow-wrap:anywhere;
}
.mt-record__meta{ margin:0 0 .8em; font-size:.92rem; color:var(--muted); }
.mt-record .btn-row{ margin:.4em 0 0; }

/* Таблицы с параметрами */
.mt-table th[scope="row"]{ background:transparent; font-weight:600; color:var(--purple-deep); }
.mt-table td, .mt-table th{ font-size:.93rem; }
.mt-note{ font-size:.9rem; color:var(--muted); margin-top:-.6em; }

/* Сверка параметров */
.mt-tool{
  margin:1.4rem 0; padding:22px; background:var(--azure-soft);
  border:1px solid var(--azure-light); border-radius:12px;
}
.mt-tool h3{ margin-top:0; }
.mt-tool__grid{
  display:grid; gap:14px 18px;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  margin:14px 0;
}
.mt-tool__field{ display:flex; flex-direction:column; gap:5px; }
.mt-tool__field label{ font-size:.9rem; font-weight:600; color:var(--purple-deep); }
.mt-tool__field input, .mt-tool__field select{
  font:inherit; padding:9px 11px; border:1px solid var(--line);
  border-radius:8px; background:#fff; color:var(--ink); min-height:44px;
}
.mt-tool__field input:focus, .mt-tool__field select:focus{
  outline:3px solid var(--focus); outline-offset:1px;
}
.mt-tool__doc{ max-width:560px; margin-bottom:6px; }
.mt-tool__doc select{ width:100%; }
.mt-result{ margin-top:16px; }
.mt-result[hidden]{ display:none; }
.mt-result__sum{ font-weight:700; color:var(--purple-deep); margin:0 0 .6em; }
.mt-result table{ background:#fff; min-width:0; }
.mt-status{ font-weight:700; white-space:nowrap; }
.mt-status--ok{ color:#1F6B3A; }
.mt-status--diff{ color:#9A3412; }
.mt-status--na{ color:var(--muted); font-weight:400; }

/* Чек-лист с сохранением отметок в браузере */
.mt-check{ margin:1.4rem 0; }
.mt-check__doc{ max-width:560px; margin-bottom:10px; }
.mt-check__doc select{
  width:100%; font:inherit; padding:9px 11px; border:1px solid var(--line);
  border-radius:8px; background:#fff; min-height:44px;
}
.mt-check ul{ list-style:none; padding:0; margin:0 0 .8em; }
.mt-check ul[hidden]{ display:none; }
.mt-check li{ margin:0 0 .5em; }
.mt-check label{
  display:flex; gap:12px; align-items:flex-start; cursor:pointer;
  padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface);
}
.mt-check input{ width:22px; height:22px; margin-top:2px; flex:0 0 auto; accent-color:var(--purple); }
.mt-check input:checked + span{ color:var(--muted); text-decoration:line-through; }
.mt-progress{
  height:10px; border-radius:999px; background:var(--purple-soft); overflow:hidden; margin:6px 0;
}
.mt-progress span{ display:block; height:100%; width:0; background:var(--purple); transition:width .25s; }
.mt-check__status{ font-size:.92rem; color:var(--muted); margin:0 0 .6em; }

@media (prefers-reduced-motion: reduce){
  .mt-progress span{ transition:none; }
}

/* Широкая сводная таблица на странице каталога */
.mt-table--wide{ min-width:1040px; }
.mt-table--wide td, .mt-table--wide th{ font-size:.86rem; vertical-align:top; }
.mt-table--wide thead th{ position:sticky; top:0; }
[data-mt-group][hidden]{ display:none; }
