@import url("/assets/datahub-serif-fonts.css");
@import url("/assets/datahub-navigation.css?v=20260715-skill-nav");

:root {
  --salary: #047c72;
  --salary-bg: rgba(16, 169, 154, 0.16);
  --salary-border: rgba(16, 169, 154, 0.38);
  --skill-shell-width: 1180px;
}

html body .skill-site-container {
  width: min(var(--skill-shell-width), calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

html body .skill-site-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 245, 0.94);
  backdrop-filter: blur(12px);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html body .skill-site-topbar .topbar-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

html body .skill-site-topbar .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}

html body .skill-site-topbar .brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

html body .skill-site-topbar .topmark {
  font-family: "Source Serif 4", "Noto Serif SC", serif;
  font-size: 1.44rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

html body .skill-site-topbar .nav-drawer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-left: auto;
}

html body .skill-site-topbar .nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html body .skill-site-topbar .nav-menu a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

html body .skill-site-topbar .nav-menu a:hover,
html body .skill-site-topbar .nav-menu a.active {
  color: var(--text);
}

html body .skill-site-topbar .nav-menu a.active {
  font-weight: 800;
}

html body .skill-site-topbar .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

html body .skill-site-topbar .hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 160ms ease, opacity 160ms ease;
}

html body .skill-site-topbar .account-menu:not([data-auth-ready]) .account-button {
  visibility: hidden;
}

.skill-product-topbar .topbar-shell {
  justify-content: flex-start;
}

.skill-header-tabs {
  align-self: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-right: 0;
  margin-left: auto;
}

.skill-header-tabs a {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--dim);
  padding: 0 15px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.skill-header-tabs a:hover {
  border-color: var(--green-border);
  background: var(--green-soft);
  color: var(--green-ink);
}

.skill-header-tabs a[aria-current="page"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.skill-header-tabs a[aria-current="page"]::after {
  content: none;
}

html body main.page {
  width: min(var(--skill-shell-width), calc(100% - 48px));
  max-width: var(--skill-shell-width);
  margin-right: auto;
  margin-left: auto;
  padding: 20px 0 52px;
}

.skill-scope-note {
  width: min(var(--skill-shell-width), calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.75;
}

main.page .skill-scope-note {
  width: 100%;
}

.skill-scope-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.skill-site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.skill-site-footer .footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.skill-site-footer .footer-primary {
  display: grid;
  gap: 4px;
}

.skill-site-footer .footer-primary p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.skill-site-footer a {
  color: inherit;
  text-decoration: none;
}

.skill-site-footer .friend-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  flex-wrap: wrap;
  max-width: 620px;
}

.skill-site-footer .friend-links span {
  color: var(--muted);
}

.skill-site-footer .friend-links a {
  color: var(--dim);
  white-space: nowrap;
}

.skill-site-footer .friend-links a:hover {
  color: var(--text);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 23, 20, 0.42);
  backdrop-filter: blur(6px);
}

.auth-modal .auth-dialog {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 26px;
  box-shadow: 0 24px 70px rgba(16, 31, 26, 0.26);
}

.auth-modal .auth-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0;
}

.auth-modal .auth-dialog h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.auth-modal .auth-dialog p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
}

.auth-modal .auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  padding: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal .auth-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-modal .auth-form label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.4;
}

.auth-modal .auth-form input {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
}

.auth-modal .auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.auth-modal .auth-actions button {
  height: 38px;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  cursor: pointer;
}

.auth-modal .auth-secondary {
  border: 1px solid var(--green-border);
  background: var(--bg);
  color: var(--green);
}

.auth-modal .auth-submit {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.auth-modal .auth-message {
  min-height: 20px;
  color: var(--dim);
  font-size: 13px;
}

.auth-modal .auth-message.error {
  color: #b42318;
}

.auth-modal .auth-message.ok {
  color: var(--green);
}

@media (max-width: 980px) {
  html body .skill-site-topbar .topbar-shell {
    min-height: 68px;
  }

  html body .skill-site-topbar .brand-logo {
    width: 40px;
    height: 40px;
  }

  html body .skill-site-topbar .topmark {
    font-size: 1.34rem;
  }

  html body .skill-site-topbar .hamburger {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transform: translateY(-50%);
  }

  html body .skill-site-topbar .nav-drawer {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    z-index: 110;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 18px 44px rgba(32, 52, 39, 0.16);
  }

  html body .skill-site-topbar .nav-drawer.is-open {
    display: flex;
  }

  html body .skill-site-topbar .nav-menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  html body .skill-site-topbar .nav-menu a {
    min-height: 34px;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  html body .skill-site-container,
  html body main.page,
  .skill-scope-note {
    width: min(var(--skill-shell-width), calc(100% - 32px));
  }

  html body main.page {
    padding: 20px 0 44px;
  }

  html body .skill-product-topbar {
    padding-bottom: 12px;
  }

  html body .skill-product-topbar .topbar-shell,
  html body .skill-product-topbar:has(.account-menu) .topbar-shell {
    width: 100%;
    min-height: 0;
    flex-wrap: wrap;
    gap: 0;
    padding-right: 0;
  }

  html body .skill-product-topbar .brand-lockup {
    width: 100%;
    min-height: 68px;
    max-width: none;
  }

  .skill-header-tabs {
    order: 2;
    width: 100%;
    min-height: 46px;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 5px 16px;
  }

  .skill-header-tabs a {
    min-height: 36px;
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 14px;
  }

  html body .skill-product-topbar > .account-menu {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    justify-content: flex-start;
    margin: 12px 16px 0;
    transform: none;
  }

  html body .skill-product-topbar > .account-menu .account-dropdown {
    right: auto;
    left: 0;
    top: calc(100% + 8px);
  }

  .skill-site-footer .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-site-footer .friend-links {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  html body .skill-site-topbar .topmark {
    font-size: 1.2rem;
  }

}
