:root {
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
}

.brand,
.footer-logo {
  flex: none;
  white-space: nowrap;
}

.brand-mark {
  background: #0b1220;
  border-color: #0b1220;
}

.brand-mark .proxy-p,
.footer-logo-mark .proxy-p {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .proxy-node,
.footer-logo-mark .proxy-node {
  fill: #f8fafc;
}

.brand-mark .proxy-node-accent,
.footer-logo-mark .proxy-node-accent {
  fill: #38bdf8;
}

.footer-logo-mark {
  background: #0b1220;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .28);
}

.menu a.nav-featured,
.menu a.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.menu a.nav-featured {
  box-shadow: 0 8px 18px rgba(37, 99, 235, .1);
}

.footer-heading {
  display: block;
  margin: 0 0 8px;
  color: #dce8f7;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 10px;
  background: #0b1220;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.partner-cta:hover {
  color: #fff;
  text-decoration: none;
}

.partner-cta span,
.partner-note > span {
  color: #7dd3fc;
  font-size: 11px;
  letter-spacing: .08em;
}

.partner-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: center;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #cfe3ff;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  background: #f8fbff;
}

.partner-note > span,
.partner-note > p {
  grid-column: 1;
}

.partner-note > p {
  margin: 0;
  color: #40556a;
  font-size: 14px;
}

.partner-note > a {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.detail-grid,
.detail-content,
.detail-sidebar {
  min-width: 0;
}

.detail-content pre,
.detail-content table {
  max-width: 100%;
  overflow-x: auto;
}

.guide-feature-card {
  min-height: 380px;
  align-self: start;
}

@media (max-width: 860px) {
  .nav {
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .menu {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .detail-content,
  .detail-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .detail-content table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto;
  }

  .partner-note {
    grid-template-columns: 1fr;
  }

  .partner-note > a {
    grid-column: 1;
    grid-row: auto;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu a {
    min-width: 0;
    padding: 0 4px;
    justify-content: center;
    gap: 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-hot {
    min-width: 24px;
    height: 17px;
    padding: 0 4px;
    font-size: 9px;
  }

  .home-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .home-categories {
    grid-template-columns: 1fr;
  }

  .home-cat {
    min-height: 124px;
    padding: 15px 18px;
  }

  .home-cat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
  }

  .home-cat small {
    margin-top: 8px;
  }
}
