:root {
  --updv-guide-ice: #f7f8fa;
  --updv-guide-black: #0b0d0f;
  --updv-guide-silver: #c8cdd3;
  --updv-guide-gun: #4e555d;
  --updv-guide-lime: #c7ff24;
  --updv-guide-lime-dark: #8fc900;
}

.updv-guide-page .site-content,
.updv-guide-page .wd-content-layout {
  min-width: 0;
}

.updv-guide-layout {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 56px);
  width: min(1240px, calc(100% - 40px));
  margin: clamp(34px, 5vw, 72px) auto clamp(60px, 8vw, 110px);
  align-items: start;
}

.updv-guide-sidebar {
  min-width: 0;
}

.updv-guide-sidebar__card {
  position: sticky;
  top: 112px;
  overflow: hidden;
  border: 1px solid var(--updv-guide-silver);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(11, 13, 15, .07);
}

.updv-guide-sidebar__head {
  position: relative;
  padding: 24px 22px 22px;
  color: #fff;
  background: var(--updv-guide-black);
}

.updv-guide-sidebar__head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--updv-guide-lime);
}

.updv-guide-sidebar__head span {
  display: block;
  margin-bottom: 7px;
  color: var(--updv-guide-lime);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .16em;
}

.updv-guide-sidebar__head strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
}

.updv-guide-sidebar__head p {
  margin: 8px 0 0;
  color: var(--updv-guide-silver);
  font-size: 12px;
  line-height: 1.6;
}

.updv-guide-nav {
  padding: 20px 16px 18px;
  background: #fff;
}

.updv-guide-nav__group + .updv-guide-nav__group {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e7e9ec;
}

.updv-guide-nav__group h3 {
  margin: 0 8px 8px;
  color: var(--updv-guide-gun);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .08em;
}

.updv-guide-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.updv-guide-nav li {
  margin: 2px 0;
}

.updv-guide-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px 9px 13px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: var(--updv-guide-black);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.updv-guide-nav a small {
  flex: 0 0 auto;
  color: #a2a8af;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.updv-guide-nav a:hover,
.updv-guide-nav a:focus-visible {
  border-left-color: var(--updv-guide-lime-dark);
  background: var(--updv-guide-ice);
  color: var(--updv-guide-black);
  outline: none;
}

.updv-guide-nav a.is-current {
  border-left-color: var(--updv-guide-lime);
  background: var(--updv-guide-black);
  color: #fff;
}

.updv-guide-nav a.is-current small {
  color: var(--updv-guide-lime);
}

.updv-guide-content {
  min-width: 0;
}

.updv-guide-content > :first-child {
  margin-top: 0 !important;
}

.updv-guide-content :is(h1, h2, h3) {
  scroll-margin-top: 120px;
}

/* Keep the existing full points program inside the right-hand content column. */
.updv-guide-content > .updv-points-page,
.updv-guide-content .updv-points-page {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.updv-guide-content .updv-points-wrap {
  width: 100%;
  max-width: 100%;
  padding-right: clamp(18px, 3vw, 34px);
  padding-left: clamp(18px, 3vw, 34px);
}

.updv-guide-content .updv-points-hero__inner {
  gap: clamp(22px, 4vw, 48px);
}

/* Keep the split benefits heading readable inside the guide content column. */
.updv-guide-content .updv-points-section-heading--split {
  max-width: none;
  grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
}

.updv-guide-content .updv-points-section-heading--split h2 {
  word-break: keep-all;
}

/* Homepage trust icons: larger without changing the three-column structure. */
body.home [data-updvape-home] .updv-assurance-item {
  grid-template-columns: 66px minmax(0, 1fr) !important;
}

body.home [data-updvape-home] .updv-assurance-icon {
  width: 66px !important;
  height: 66px !important;
  border-radius: 16px !important;
}

body.home [data-updvape-home] .updv-assurance-icon svg {
  width: 34px !important;
  height: 34px !important;
}

/* Prevent Chinese WooCommerce labels from leaking into the Japanese account UI. */
.woocommerce-account .woocommerce-MyAccount-navigation-link--member-rank a::before {
  color: var(--updv-guide-lime-dark);
}

.updv-guide-mobile-menu {
  display: none;
}

@media (max-width: 899px) {
  .updv-guide-layout {
    display: block;
    width: min(100% - 28px, 760px);
    margin-top: 22px;
  }

  .updv-guide-sidebar {
    display: none;
  }

  .updv-guide-mobile-menu {
    display: block;
    width: min(100% - 28px, 760px);
    margin: 24px auto 0;
  }

  .updv-guide-mobile-menu details {
    overflow: hidden;
    border: 1px solid var(--updv-guide-silver);
    border-radius: 4px;
    background: #fff;
  }

  .updv-guide-mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: #fff;
    background: var(--updv-guide-black);
    cursor: pointer;
    list-style: none;
  }

  .updv-guide-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .updv-guide-mobile-menu summary span {
    font-size: 15px;
    font-weight: 800;
  }

  .updv-guide-mobile-menu summary small {
    color: var(--updv-guide-lime);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
  }

  .updv-guide-mobile-menu summary::after {
    content: "+";
    margin-left: auto;
    color: var(--updv-guide-lime);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .updv-guide-mobile-menu details[open] summary::after {
    content: "−";
  }

  .updv-guide-mobile-menu__panel .updv-guide-nav {
    padding: 18px 14px;
  }

  .updv-guide-content .updv-points-section-heading--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .updv-guide-content .updv-points-wrap {
    padding-right: 15px;
    padding-left: 15px;
  }

  .updv-guide-nav a {
    font-size: 12.5px;
  }

  body.home [data-updvape-home] .updv-assurance-item {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  body.home [data-updvape-home] .updv-assurance-icon {
    width: 56px !important;
    height: 56px !important;
  }

  body.home [data-updvape-home] .updv-assurance-icon svg {
    width: 29px !important;
    height: 29px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .updv-guide-nav a {
    transition: none;
  }
}
