.group-guide .hero { margin-bottom: 20px; }
.tenure {
  padding: clamp(16px, 2.4vw, 32px);
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.tenure h2 { margin: 0 0 8px; }
.tenure p { margin: 0 0 12px; }
.tenure table { table-layout: fixed; margin: 12px 0; font-variant-numeric: tabular-nums; }
.tenure caption { padding: 2px 0 0; margin-bottom: 8px; }
.tenure td, .tenure th { padding: 8px 10px; }
.tenure thead th:first-child { width: 55%; }
.tenure thead th:not(:first-child) { position: relative; white-space: nowrap; padding-inline: 2px; color: var(--ink); }
.tenure td, .tenure thead th + th { border-left: 1px solid var(--line); }
.tenure .tenure__category {
  background: var(--soft); color: var(--ink); border-top: 1px solid var(--line);
  font: 600 15px/1.35 var(--font); text-align: left;
}
.tenure__category small, .tenure .education-name {
  display: block; margin-top: 2px; color: var(--text-2); font: 400 14px/1.35 var(--font);
}
.tenure td b { font: 600 16px var(--font); color: var(--ink); }
.tenure .kn__src { margin: 8px 0; color: var(--text-2); font-size: 14px; }
.tenure__nav {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.tenure__nav strong { font: 600 15px var(--font); margin-right: 4px; }
.tenure__nav a { background: var(--soft); border-radius: 8px; padding: 8px 11px; text-decoration: none; font-weight: 600; }
.tenure__nav a:hover, .theme-jump:hover { text-decoration: underline; }
.tenure, .group-guide [id^="group-"], .program-topics, .program-topics [id^="tema-"] { scroll-margin-top: 78px; }
.theme-jump { display: block; text-align: center; margin: 10px 0 0; font-weight: 600; text-decoration: none; }
.full-topic { margin: 0; padding: 12px 20px; font-size: 15px; color: var(--text-2); }
.program-topics .topic-training__link { white-space: nowrap; }
.program-topics .topic-training:has(> details[hidden]) { display: none; }
@media (min-width: 640px) {
  .program-topics .topic-training { --training-width: 205px; }
}
@media (max-width: 639px) {
  .tr.is-res .tr__x { flex-shrink: 0; }
  .tr.is-res .tr__cnt--label { white-space: normal; text-align: right; line-height: 1.3; }
  .tenure .info__tab { display: table; min-width: 0; font-size: 14px; }
  .tenure th, .tenure td { padding: 7px 4px; line-height: 1.28; }
  .tenure th[scope="row"] { hyphens: auto; overflow-wrap: anywhere; }
  .tenure .tenure__category { padding: 6px; }
  .tenure thead th { font-size: 13px; }
  .tenure thead th:first-child { width: 49%; }
  .tenure .kn__src { font-size: 13px; }
  .tenure__nav strong { width: 100%; }
  .group-guide .hero__head h1 { font-size: 21px; overflow-wrap: normal; }
}
@media (max-width: 359px) {
  .tenure thead th:first-child { width: 43%; }
  .group-guide .info__ga { white-space: normal; overflow-wrap: anywhere; }
}
@media print {
  .tenure__nav, .theme-jump { display: none; }
}
