/* Desktop navigation and homepage details. */
.quote .site-title {
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.home-accent-segment {
  border-color: rgb(245, 150, 170);
}
.home-accent-label {
  color: rgb(245, 150, 170);
}
.is-hidden {
  display: none;
}
.menu {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.34)
    ),
    linear-gradient(90deg, rgba(243, 145, 169, 0.1), rgba(68, 215, 182, 0.1));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(10px);
}
.menu .list-h {
  gap: 6px;
  margin: 0;
}
.menu .list-h a + a {
  margin-left: 0;
}
.menu .list-h a {
  cursor: pointer;
}
.menu .list-h a.nav-entry {
  --accent: #44d7b6;
  --accent-soft: rgba(68, 215, 182, 0.16);
  position: relative;
  min-width: 74px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.menu .list-h a.nav-entry::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #f391a9);
  opacity: 0;
  transform: scaleX(0.42);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.menu .list-h a.nav-entry::after {
  content: "";
  position: absolute;
  inset: 8px 10px auto;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.menu .list-h a.nav-entry p {
  margin-top: 4px;
  color: rgba(68, 68, 68, 0.76);
  font-size: 15px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.menu .list-h a.nav-entry svg {
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.06));
}
.menu .list-h a.nav-entry:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}
.menu .list-h a.nav-entry:hover::before,
.menu .list-h a.nav-entry:hover::after {
  opacity: 1;
}
.menu .list-h a.nav-entry:hover::before {
  transform: scaleX(1);
}
.menu .list-h a.nav-entry:hover::after {
  transform: translateY(0);
}
.menu .list-h a.home-entry {
  --accent: #f3b43f;
  --accent-soft: rgba(243, 180, 63, 0.18);
}
.menu .list-h a.about-entry {
  --accent: #a89bfa;
  --accent-soft: rgba(168, 155, 250, 0.18);
}
.menu .list-h a.paper-tool {
  --accent: #7ccfa5;
  --accent-soft: rgba(124, 207, 165, 0.18);
}
.menu .list-h a.layout-tool {
  --accent: #44d7b6;
  --accent-soft: rgba(68, 215, 182, 0.18);
}
.menu .list-h a.quote-tool {
  --accent: #f391a9;
  --accent-soft: rgba(243, 145, 169, 0.18);
}
.menu .list-h a.stock-tool {
  --accent: #e75c5c;
  --accent-soft: rgba(231, 92, 92, 0.16);
}
.top-icon-bg {
  fill: #fff;
  stroke: #333;
  stroke-width: 34;
  stroke-linejoin: round;
}
.top-icon-accent {
  fill: var(--accent);
}
.top-icon-soft {
  fill: var(--accent-soft);
}
.top-icon-line {
  fill: none;
  stroke: #333;
  stroke-width: 34;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top-icon-fill {
  fill: #fff;
  stroke: #333;
  stroke-width: 28;
  stroke-linejoin: round;
}
@media screen and (max-width: 767px) {
  #header {
    padding-bottom: 54px;
  }
  .menu {
    width: calc(100% - 18px);
    max-width: 460px;
    margin: 8px auto 0;
    padding: 6px;
    border-radius: 8px;
  }
  .menu .list-h {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78px;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 1px 1px 4px;
  }
  .menu .list-h::-webkit-scrollbar {
    height: 0;
    width: 0;
  }
  .menu .list-h a.nav-entry {
    min-width: 0;
    width: 78px;
    padding: 9px 6px 10px;
    scroll-snap-align: center;
  }
  .menu .list-h a.nav-entry svg {
    width: 42px;
    height: 42px;
  }
  .menu .list-h a.nav-entry p {
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 18px;
  }
}
@media screen and (max-width: 500px) {
  .menu .list-h a.nav-entry {
    min-width: 70px;
  }
  .menu .list-h a.nav-entry p {
    font-size: 14px;
  }
}
