/* English Guide Nexus integration. */
.dnp-guide-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.dnp-guide-card__media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--v7-line);
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--page-accent) 25%, transparent), transparent 42%),
    #0a0f1e;
}

.dnp-guide-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.82) contrast(1.05);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.dnp-guide-card:hover .dnp-guide-card__media img {
  transform: scale(1.035);
  opacity: 0.92;
}

.dnp-guide-card__media > span {
  display: grid;
  height: 100%;
  place-items: center;
  color: color-mix(in srgb, var(--page-accent) 45%, transparent);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 950;
  letter-spacing: 0.16em;
}

.dnp-guide-card__media > b {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 8px;
  background: rgba(4, 7, 14, 0.82);
  color: var(--page-accent);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.dnp-guide-card__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 20px;
}

.dnp-guide-card__copy footer {
  margin-top: auto;
}

.dnp-guide-detail {
  --guide-accent: #67e2ff;
  min-height: 100vh;
  background: #050711;
}

.dnp-guide-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--v7-line);
  background:
    linear-gradient(90deg, rgba(4, 6, 13, 0.98) 0%, rgba(4, 6, 13, 0.9) 48%, rgba(4, 6, 13, 0.5) 100%),
    var(--guide-cover),
    radial-gradient(circle at 78% 35%, rgba(103, 226, 255, 0.18), transparent 34%),
    #070a15;
  background-position: center, center right, center;
  background-size: cover, min(62vw, 1000px) auto, cover;
  background-repeat: no-repeat;
}

.dnp-guide-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, #050711 100%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 80px);
  pointer-events: none;
}

.dnp-guide-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 170px;
  padding-bottom: 76px;
}

.dnp-guide-back {
  display: inline-block;
  margin-bottom: 42px;
  color: #8b9bb5;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.dnp-guide-back:hover {
  color: var(--guide-accent);
}

.dnp-guide-hero__meta,
.dnp-guide-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dnp-guide-hero__meta span,
.dnp-guide-hero__tags span {
  padding: 7px 9px;
  border: 1px solid rgba(159, 208, 235, 0.16);
  background: rgba(5, 8, 17, 0.7);
  color: #9aa9c0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dnp-guide-hero__meta span:first-child {
  color: var(--guide-accent);
  border-color: rgba(103, 226, 255, 0.32);
}

.dnp-guide-hero h1 {
  max-width: 1000px;
  margin: 22px 0 18px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.dnp-guide-hero p {
  max-width: 720px;
  margin: 0 0 25px;
  color: #a8b4c8;
  font-size: 16px;
  line-height: 1.75;
}

.dnp-guide-hero__tags span {
  padding: 0;
  border: 0;
  background: transparent;
  color: #657189;
}

.dnp-guide-reader {
  display: grid;
  grid-template-columns: 240px minmax(0, 900px);
  justify-content: space-between;
  gap: clamp(36px, 6vw, 90px);
  padding-top: 74px;
  padding-bottom: 80px;
}

.dnp-guide-toc {
  position: sticky;
  top: 100px;
  height: max-content;
  border-left: 1px solid var(--v7-line);
  padding-left: 18px;
}

.dnp-guide-toc > span,
.dnp-guide-toc > small {
  display: block;
  color: var(--guide-accent);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.19em;
}

.dnp-guide-toc nav {
  display: grid;
  margin: 16px 0 28px;
}

.dnp-guide-toc a {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  padding: 9px 0;
  color: #8290a9;
  font-size: 10px;
  line-height: 1.45;
}

.dnp-guide-toc a:hover {
  color: #e5edf8;
}

.dnp-guide-toc a i {
  color: #4d5a70;
  font-size: 8px;
  font-style: normal;
}

.dnp-guide-toc > small {
  color: #4f5c71;
}

.dnp-nexus-guide {
  min-width: 0;
  color: #aeb9ca;
  font-size: 15px;
  line-height: 1.8;
}

.dnp-nexus-guide > *:first-child {
  margin-top: 0;
}

.dnp-nexus-guide h2 {
  scroll-margin-top: 110px;
  margin: 72px 0 25px;
  color: #f2f6fc;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.dnp-nexus-guide h2::before {
  content: '/';
  margin-right: 12px;
  color: var(--guide-accent);
}

.dnp-nexus-guide .g-lead {
  max-width: 760px;
  margin: 0 0 48px;
  color: #e2e8f2;
  font-size: 19px;
  line-height: 1.65;
}

.dnp-nexus-guide .g-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-steps;
}

.dnp-nexus-guide .g-step {
  position: relative;
  min-width: 0;
  padding: 28px 28px 28px 82px;
  border: 1px solid var(--v7-line);
  background: linear-gradient(145deg, rgba(15, 21, 39, 0.75), rgba(7, 10, 20, 0.88));
  counter-increment: guide-steps;
}

.dnp-nexus-guide .g-step::before {
  content: counter(guide-steps, decimal-leading-zero);
  position: absolute;
  top: 31px;
  left: 27px;
  color: var(--guide-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.dnp-nexus-guide .g-step-text {
  margin: 0;
  color: #e9eef7;
  font-weight: 700;
}

.dnp-nexus-guide .g-notes {
  margin: 15px 0 0;
  padding-left: 19px;
  color: #8e9cb2;
}

.dnp-nexus-guide .g-notes li + li {
  margin-top: 5px;
}

.dnp-nexus-guide .g-figure {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--v7-line);
  background: #04060c;
}

.dnp-nexus-guide .g-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.dnp-nexus-guide .g-figure figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--v7-line);
  color: #6f7d93;
  font-size: 11px;
  line-height: 1.55;
}

.dnp-nexus-guide .g-note {
  margin: 24px 0 0;
  padding: 21px 23px;
  border-left: 3px solid var(--guide-accent);
  background: rgba(103, 226, 255, 0.055);
}

.dnp-nexus-guide .g-note p {
  margin: 0;
}

.dnp-nexus-guide .g-note .g-note-title {
  margin-bottom: 7px;
  color: var(--guide-accent);
  font-weight: 900;
}

.dnp-nexus-guide .g-table,
.dnp-nexus-guide table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
}

.dnp-nexus-guide th,
.dnp-nexus-guide td {
  min-width: 105px;
  padding: 13px 15px;
  border: 1px solid var(--v7-line);
  text-align: left;
  vertical-align: top;
}

.dnp-nexus-guide th {
  background: #10172a;
  color: #eef4fc;
}

.dnp-nexus-guide .g-table-note {
  color: #78869d;
  font-size: 12px;
}

.dnp-nexus-guide .g-cards,
.dnp-nexus-guide .g-nests,
.dnp-nexus-guide .g-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.dnp-nexus-guide .g-card,
.dnp-nexus-guide .g-nest,
.dnp-nexus-guide .g-route {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--v7-line);
  background: rgba(10, 15, 29, 0.82);
}

.dnp-nexus-guide .g-card-name,
.dnp-nexus-guide .g-route-name {
  display: block;
  margin-bottom: 5px;
  color: #ecf2fa;
  font-weight: 800;
}

.dnp-nexus-guide .g-card-desc,
.dnp-nexus-guide .g-route-path {
  display: block;
  color: #8997ad;
  font-size: 13px;
}

.dnp-nexus-guide .g-card-tag {
  display: block;
  margin-top: 8px;
  color: var(--guide-accent);
  font-size: 11px;
  font-weight: 900;
}

.dnp-nexus-guide .g-card-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 13px;
  object-fit: contain;
}

.dnp-nexus-guide .g-map,
.dnp-nexus-guide .g-branch {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--v7-line);
  background: rgba(9, 14, 27, 0.82);
  list-style: none;
}

.dnp-nexus-guide .g-stop,
.dnp-nexus-guide .g-branch-path {
  display: inline-block;
  margin: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(103, 226, 255, 0.28);
  color: #dcebf0;
  font-size: 12px;
}

.dnp-nexus-guide .g-arrow {
  color: var(--guide-accent);
}

.dnp-guide-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 100px;
  border: 1px solid var(--v7-line);
  background: var(--v7-line);
}

.dnp-guide-pagination a {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  background: #080b16;
  transition: background 0.22s ease;
}

.dnp-guide-pagination a:last-child {
  align-items: flex-end;
  text-align: right;
}

.dnp-guide-pagination a:hover {
  background: #0c1222;
}

.dnp-guide-pagination small {
  margin-bottom: 9px;
  color: var(--guide-accent);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.dnp-guide-pagination strong {
  font-size: clamp(16px, 2vw, 24px);
}

@media (max-width: 820px) {
  .dnp-guide-reader {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .dnp-guide-toc {
    position: relative;
    top: auto;
  }

  .dnp-guide-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
}

@media (max-width: 620px) {
  .dnp-guide-hero {
    min-height: 560px;
    background-size: cover, auto 52%, cover;
    background-position: center, center top 88px, center;
  }

  .dnp-guide-hero__inner {
    padding-top: 150px;
    padding-bottom: 52px;
  }

  .dnp-guide-back {
    margin-bottom: 110px;
  }

  .dnp-guide-hero h1 {
    font-size: 48px;
  }

  .dnp-guide-reader {
    padding-top: 48px;
  }

  .dnp-guide-toc nav,
  .dnp-nexus-guide .g-cards,
  .dnp-nexus-guide .g-nests,
  .dnp-nexus-guide .g-routes,
  .dnp-guide-pagination {
    grid-template-columns: 1fr;
  }

  .dnp-nexus-guide .g-step {
    padding: 22px 18px 22px 54px;
  }

  .dnp-nexus-guide .g-step::before {
    top: 25px;
    left: 18px;
  }

  .dnp-nexus-guide h2 {
    margin-top: 58px;
  }

  .dnp-guide-pagination a:last-child {
    align-items: flex-start;
    text-align: left;
  }
}
