.reference-skill-page {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 36px;
  color: var(--suite-ink);
  font: 14px/1.65 var(--suite-font);
  background: #f4f6f8;
}

.reference-skill-page * {
  box-sizing: border-box;
}

.reference-skill-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .82), transparent 88%);
}

.reference-skill-page a {
  color: inherit;
  text-decoration: none;
}

.reference-skill-page .reference-suite-nav {
  margin-top: 18px;
  border-radius: 12px;
}

.main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skill-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--suite-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.skill-page-kicker {
  margin: 0 0 3px;
  color: var(--suite-accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.skill-page-head h1 {
  margin: 0;
  color: var(--suite-ink);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.skill-page-meta {
  flex: 0 0 auto;
  color: var(--suite-sub);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--suite-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
}

.nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(136, 151, 170, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: #415066;
  font-size: 13px;
  font-weight: 850;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.nav a:hover {
  border-color: rgba(15, 118, 110, .34);
  background: #f0faf8;
  color: var(--suite-accent-strong);
  transform: translateY(-1px);
}

.nav li.curr a {
  border-color: rgba(15, 118, 110, .48);
  background-color: #e8f6f3;
  color: var(--suite-accent-strong);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, .08) inset;
}

.role {
  display: none;
  overflow: hidden;
  border: 1px solid var(--suite-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

.role.active {
  display: block;
}

.role h1 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--suite-line);
  background: linear-gradient(90deg, rgba(15, 118, 110, .08), rgba(183, 121, 31, .06));
  color: var(--suite-ink);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.role table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.role tr {
  border-bottom: 1px solid rgba(136, 151, 170, .22);
}

.role tr:last-child {
  border-bottom: 0;
}

.role tr:nth-child(even) {
  background: rgba(248, 250, 252, .72);
}

.role td {
  vertical-align: top;
  padding: 14px 16px;
}

.skill-name-cell {
  width: 132px;
  color: #1f2a3a;
  font-weight: 850;
  text-align: center;
}

.role td:last-child {
  color: #405066;
  font-size: 13px;
  line-height: 1.75;
  word-break: break-word;
}

.role strong {
  display: block;
  margin-bottom: 4px;
  color: #172233;
  font-size: 13px;
  line-height: 1.65;
}

.icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 8px;
  background-color: #111827;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .16);
  text-indent: -9999px;
}

.bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--suite-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: var(--suite-sub);
  font-size: 12px;
  font-weight: 850;
}

.bottom a:hover {
  border-color: rgba(15, 118, 110, .34);
  background: #f0faf8;
  color: var(--suite-accent-strong);
}

@media (max-width: 720px) {
  .reference-skill-page .reference-suite-nav,
  .main {
    width: min(100% - 20px, 1120px);
  }

  .skill-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .skill-page-meta {
    white-space: normal;
  }

  .nav {
    position: static;
  }

  .nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .role table,
  .role tbody,
  .role tr,
  .role td {
    display: block;
    width: 100%;
  }

  .skill-name-cell {
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(136, 151, 170, .26);
  }

  .role td:last-child {
    padding-top: 10px;
  }
}
