/* ALZIO_GUIDE_UI_20261105 — existing guide navigation and bottom notice only. */

.azdg,
.alzio-full-guide[data-alzio-deep-guide="1"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 1450px;
  min-width: 0;
  margin-inline: auto;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]),
:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) * {
  box-sizing: border-box;
  min-width: 0;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  padding: 26px;
  border: 1px solid #d7e3f2;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 55%, #f5f9ff);
  color: #17324f;
  box-shadow: 0 8px 24px rgb(25 57 91 / 5%);
  text-align: left;
  overflow: visible;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > strong {
  display: block;
  margin: 0;
  color: #143250;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.025em;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol {
  display: grid;
  /* 1–3 columns, determined by the actual guide width, including a narrow main. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc((100% - 24px) / 3))), 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: alzio-guide-nav;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li {
  display: block;
  margin: 0;
  padding: 0;
  counter-increment: alzio-guide-nav;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li > a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 8px;
  align-items: start;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 78px;
  padding: 15px 14px;
  border: 1px solid #dce6f2;
  border-radius: 13px;
  background: #f6f9fe;
  color: #244563;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  text-decoration: none;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li > a::before {
  content: counter(alzio-guide-nav, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e5eefb;
  color: #24558e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-right: 2px solid #6282a2;
  border-bottom: 2px solid #6282a2;
  transform: rotate(45deg);
}

:is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li > a:focus-visible {
  outline: 3px solid #1773ad;
  outline-offset: 3px;
  background: #edf5ff;
}

/* Keep the existing notice in its current DOM position. */
.azMiniGuide {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1450px;
  min-width: 0;
  margin: 28px auto 40px;
}

.azMiniGuide > .azMiniGuide-linkGrid {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.azMiniGuide .azMiniGuide-linkCard.azMiniGuide-share,
.azMiniGuide .azMiniGuide-linkCard.azMiniGuide-share * {
  box-sizing: border-box;
  min-width: 0;
}

.azMiniGuide .azMiniGuide-linkCard.azMiniGuide-share {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  padding: 26px 30px;
  border: 1px solid #d9e6f4;
  border-radius: 20px;
  background: linear-gradient(110deg, #f1f7ff, #fff 72%);
  color: #183b58;
  box-shadow: 0 8px 24px rgb(25 57 91 / 5%);
  text-align: left;
  text-decoration: none;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-cardIcon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #f2dae3;
  border-radius: 17px;
  background: #fff0f5;
  color: #b43461;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-cardIcon > i {
  display: none;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-cardIcon::before {
  content: "\2665";
  font-family: system-ui, sans-serif;
  font-size: 26px;
  font-style: normal;
  line-height: 1;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-cardText {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 24px;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-cardText > strong {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #173a59;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-cardText > p {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #4b637b;
  font-size: 15px;
  line-height: 1.7;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-more {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  background: #18548f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.azMiniGuide .azMiniGuide-share .azMiniGuide-more > em {
  font-style: normal;
  font-weight: 700;
}

.azMiniGuide .azMiniGuide-linkCard.azMiniGuide-share:focus-visible {
  outline: 3px solid #1773ad;
  outline-offset: 4px;
}

@media (hover: hover) {
  :is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li > a:hover {
    border-color: #83a9da;
    background: #edf5ff;
    box-shadow: 0 5px 15px rgb(27 77 127 / 9%);
  }
  .azMiniGuide .azMiniGuide-linkCard.azMiniGuide-share:hover {
    border-color: #83a9da;
    box-shadow: 0 10px 28px rgb(27 77 127 / 10%);
  }
}

@media (max-width: 640px) {
  :is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) {
    padding: 20px 16px;
    border-radius: 16px;
  }
  :is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > strong {
    font-size: 18px;
  }
  :is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
  }
  :is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li > a {
    min-height: 64px;
    padding: 14px 12px;
  }
  .azMiniGuide .azMiniGuide-linkCard.azMiniGuide-share {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 16px;
  }
  .azMiniGuide .azMiniGuide-share .azMiniGuide-cardIcon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
  .azMiniGuide .azMiniGuide-share .azMiniGuide-cardText {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
  .azMiniGuide .azMiniGuide-share .azMiniGuide-cardText > strong {
    font-size: 18px;
  }
  .azMiniGuide .azMiniGuide-share .azMiniGuide-more {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.azdg .azdg-toc, .alzio-full-guide[data-alzio-deep-guide="1"] > nav[data-guide-toc="1"]) > ol > li > a,
  .azMiniGuide .azMiniGuide-linkCard.azMiniGuide-share {
    transition: none;
  }
}

