/* Homepage-only notice and section navigation. Keep public header/footer rules untouched. */
body.customer-home.has-home-rail {
  --home-anchor-offset: 24px;
  --home-rail-width: 160px;
}

body.customer-home.has-home-rail :is(#home-top, #platforms, #home-guide, #home-support, #home-services, #home-reviews, #home-articles, #home-faq) {
  scroll-margin-top: var(--home-anchor-offset);
}

body.customer-home.has-home-rail#home-top:focus,
body.customer-home.has-home-rail :is(#home-top, #platforms, #home-guide, #home-support, #home-services, #home-reviews, #home-articles, #home-faq)[tabindex="-1"]:focus {
  outline: none;
}

.customer-home-rail,
.customer-home-rail-toggle,
.customer-home-notice,
.customer-home-notice * {
  box-sizing: border-box;
}

.customer-home-rail[hidden],
.customer-home-rail-toggle[hidden],
.customer-home-notice-trigger[hidden],
dialog.customer-home-notice:not([open]),
dialog.customer-home-notice[hidden] {
  display: none !important;
}

.customer-home-rail {
  position: fixed;
  z-index: 1060;
  top: 50%;
  right: max(22px, calc((100vw - 1480px) / 2));
  width: var(--home-rail-width, 160px);
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
  padding: 13px 9px 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 21px;
  background: rgba(255, 255, 255, .83);
  box-shadow: 0 12px 38px #526bad1a;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  scrollbar-width: thin;
}

.customer-home-rail .customer-home-rail-caption {
  margin: 3px 5px 10px;
  color: #697997;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  overflow-wrap: anywhere;
}

.customer-home-rail a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 3px 0;
  padding: 8px 9px;
  border-radius: 11px;
  color: #61718d;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.customer-home-rail a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-home-rail a:hover {
  color: #3854b3;
  background: #eef2fc;
  text-decoration: none;
}

.customer-home-rail a[aria-current="location"] {
  color: #3955bd;
  background: #e8edff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #7288de;
}

.customer-home-rail svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
}

.customer-home-rail-toggle {
  display: none;
}

.customer-home-rail a:focus-visible,
.customer-home-rail-toggle:focus-visible,
.customer-home-notice-trigger:focus-visible,
.customer-home-notice :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #496de7;
  outline-offset: 3px;
}

.customer-home-notice-entry {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.customer-home-notice-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #cbd7ee;
  border-radius: 12px;
  color: #52689d;
  background: rgba(255, 255, 255, .65);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.customer-home-notice-trigger svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.customer-home-notice-trigger:hover {
  color: #3655b0;
  background: #fff;
}

dialog.customer-home-notice {
  --home-notice-limit: min(740px, calc(100vh - 48px));
  position: fixed;
  inset: 0;
  width: 650px;
  max-width: calc(100% - 32px);
  max-height: var(--home-notice-limit);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .98);
  border-radius: 29px;
  color: #172443;
  background: linear-gradient(135deg, rgba(255, 255, 255, .99), rgba(248, 250, 255, .98));
  box-shadow: 0 38px 110px #27396f37, 0 5px 20px #4866a914;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  font-family: inherit;
}

@supports (height: 100dvh) {
  dialog.customer-home-notice {
    --home-notice-limit: min(740px, calc(100dvh - 48px));
  }
}

dialog.customer-home-notice[open] {
  display: block;
}

dialog.customer-home-notice::backdrop {
  background: rgba(49, 62, 102, .18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.customer-home-notice .customer-home-notice-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(var(--home-notice-limit) - 2px);
  min-height: 0;
}

.customer-home-notice .customer-home-notice-line {
  flex: 0 0 4px;
  height: 4px;
  background: linear-gradient(90deg, #6488fa 0%, #7c72e8 54%, #b495e8 100%);
}

.customer-home-notice .customer-home-notice-header {
  position: relative;
  flex: none;
  margin: 0;
  padding: 31px 38px 0;
  border: 0;
  background: transparent;
}

.customer-home-notice .customer-home-notice-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 21px;
  padding-right: 34px;
}

.customer-home-notice .customer-home-notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid #e2e7fd;
  border-radius: 14px;
  color: #6972d4;
  background: linear-gradient(135deg, #edf1ff, #eee8ff);
}

.customer-home-notice .customer-home-notice-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.65;
}

.customer-home-notice .customer-home-notice-kicker {
  color: #667594;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.customer-home-notice .customer-home-notice-header [data-home-notice-close] {
  position: absolute;
  top: 23px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #687898;
  background: #eff2f9;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.customer-home-notice .customer-home-notice-header [data-home-notice-close]:hover {
  color: #43599d;
  background: #e3e9f6;
}

.customer-home-notice .customer-home-notice-header [data-home-notice-close] svg {
  width: 18px;
  height: 18px;
}

.customer-home-notice #home-notice-title {
  margin: 0 0 9px;
  color: #172443;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.customer-home-notice #home-notice-title:focus {
  outline: none;
}

.customer-home-notice .customer-home-notice-intro {
  margin: 0;
  color: #6b7993;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.customer-home-notice .customer-home-notice-body {
  flex: 0 1 auto;
  min-height: 0;
  padding: 24px 38px 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: #53627f;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}

.customer-home-notice .customer-home-notice-body > :first-child {
  margin-top: 0;
}

.customer-home-notice .customer-home-notice-body > :last-child {
  margin-bottom: 5px;
}

.customer-home-notice .customer-home-notice-body :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.1em 0 .65em;
  color: #465879;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: normal;
}

.customer-home-notice .customer-home-notice-body :is(h3, h4, h5, h6) {
  font-size: 16px;
}

.customer-home-notice .customer-home-notice-body p {
  margin: 0 0 1em;
}

.customer-home-notice .customer-home-notice-body :is(ul, ol) {
  margin: .75em 0 1em;
  padding-inline-start: 1.5em;
}

.customer-home-notice .customer-home-notice-body li + li {
  margin-top: .35em;
}

.customer-home-notice .customer-home-notice-body a {
  color: #365abb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-home-notice .customer-home-notice-body :is(img, video, iframe) {
  max-width: 100%;
  height: auto;
}

.customer-home-notice .customer-home-notice-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.customer-home-notice .customer-home-notice-body :is(td, th) {
  padding: 8px 10px;
  border: 1px solid #dce4f4;
  text-align: start;
}

.customer-home-notice .customer-home-notice-body pre {
  max-width: 100%;
  padding: 12px;
  overflow: auto;
  border-radius: 10px;
  background: #edf1fa;
  white-space: pre-wrap;
}

.customer-home-notice .customer-home-notice-body blockquote {
  margin: 1em 0;
  padding: 0 15px;
  border-inline-start: 3px solid #b5c6ef;
  color: #687897;
}

.customer-home-notice .customer-home-notice-body .customer-home-notice-checklist {
  display: grid;
  gap: 15px;
  margin: 17px 0 5px;
  padding: 0;
  list-style: none;
}

.customer-home-notice .customer-home-notice-checklist > li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.customer-home-notice .customer-home-notice-checklist > li > span:last-child {
  min-width: 0;
  padding-top: 2px;
}

.customer-home-notice .customer-home-notice-checklist :is(.icon, .customer-home-notice-item-icon) {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #7384bc;
  background: #edf1fb;
}

.customer-home-notice .customer-home-notice-checklist svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.customer-home-notice .customer-home-notice-footer {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 25px 38px 29px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.customer-home .customer-home-notice .customer-home-notice-confirm {
  display: flex;
  width: 100%;
  min-height: 49px;
  padding: 11px 20px;
  border-radius: 13px;
  font-size: 15px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  background: linear-gradient(102deg, #3f68e8, #7853d8);
  box-shadow: 0 8px 20px #5269db26;
}

.customer-home-notice .customer-home-notice-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 17px auto 0;
  color: #687997;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s;
}

.customer-home-notice .customer-home-notice-help:hover {
  color: #3956ac;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-home-notice .customer-home-notice-help svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

@media (min-width: 1201px) {
  body.customer-home.has-home-rail.home-rail-ready .customer-home-main {
    width: calc(100% - 204px);
    max-width: 1268px;
    margin-left: max(0px, calc((100% - 1480px) / 2));
    margin-right: auto;
  }
}

@media (max-width: 1200px) {
  .customer-home-rail {
    top: auto;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: min(230px, calc(100vw - 36px));
    max-height: calc(100vh - 118px);
    max-height: calc(100dvh - 118px);
    padding: 12px;
    transform: none;
    background: rgba(255, 255, 255, .96);
  }

  .customer-home-rail a {
    gap: 11px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .customer-home-rail-toggle {
    position: fixed;
    z-index: 1060;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(260px, calc(100vw - 36px));
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #fff;
    border-radius: 15px;
    color: #4f649e;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 30px #4b65a42b;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    text-align: start;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  .customer-home-rail-toggle[aria-expanded="true"] {
    color: #3955bd;
    background: #e8edff;
  }

  .customer-home-rail-toggle svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 700px) {
  dialog.customer-home-notice {
    border-radius: 24px;
  }

  .customer-home-notice .customer-home-notice-header {
    padding: 25px 24px 0;
  }

  .customer-home-notice .customer-home-notice-header [data-home-notice-close] {
    top: 18px;
    right: 15px;
  }

  .customer-home-notice #home-notice-title {
    font-size: 25px;
  }

  .customer-home-notice .customer-home-notice-intro {
    font-size: 13px;
  }

  .customer-home-notice .customer-home-notice-body {
    padding: 20px 24px 0;
    font-size: 14px;
  }

  .customer-home-notice .customer-home-notice-checklist > li {
    font-size: 14px;
  }

  .customer-home-notice .customer-home-notice-footer {
    padding: 22px 24px 24px;
  }

  .customer-home-notice .customer-home-notice-help {
    font-size: 11px;
  }
}

@media (max-height: 600px) {
  dialog.customer-home-notice {
    --home-notice-limit: calc(100vh - 24px);
  }

  .customer-home-notice .customer-home-notice-header {
    padding: 15px 24px 0;
  }

  .customer-home-notice .customer-home-notice-top {
    min-height: 34px;
    margin-bottom: 10px;
    padding-right: 40px;
  }

  .customer-home-notice .customer-home-notice-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .customer-home-notice .customer-home-notice-icon svg {
    width: 20px;
    height: 20px;
  }

  .customer-home-notice .customer-home-notice-header [data-home-notice-close] {
    top: 11px;
    right: 16px;
  }

  .customer-home-notice #home-notice-title {
    margin-bottom: 5px;
    font-size: 22px;
    line-height: 1.3;
  }

  .customer-home-notice .customer-home-notice-intro {
    font-size: 13px;
    line-height: 1.6;
  }

  .customer-home-notice .customer-home-notice-body {
    padding: 14px 24px 0;
  }

  .customer-home-notice .customer-home-notice-footer {
    padding: 14px 24px 16px;
  }

  body.customer-home .customer-home-notice .customer-home-notice-confirm {
    min-height: 44px;
    padding: 8px 16px;
  }

  .customer-home-notice .customer-home-notice-help {
    margin-top: 8px;
  }
}

@supports (height: 100dvh) {
  @media (max-height: 600px) {
    dialog.customer-home-notice {
      --home-notice-limit: calc(100dvh - 24px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-home-rail a,
  .customer-home-rail-toggle,
  .customer-home-notice-trigger,
  .customer-home-notice * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  body.customer-home .customer-home-notice .customer-home-notice-confirm:hover {
    transform: none;
  }
}
