/* EditingSystem site styles. Guide and API menus can contain long document titles or complete generic
   signatures. Keep them readable without overflowing the documentation layout. */
@font-face {
  font-family: "Noto Sans JP Japanese";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/notosansjp/v56/-F6jfjtqLzI2JPCgQBnw7HFyzSD-AsregP8VFBEj75s.ttf") format("truetype");
  unicode-range: U+3000-303F, U+3040-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF01-FF60, U+FFE0-FFE6;
}

html.lang-ja body {
  font-family: "Noto Sans JP Japanese", var(--bs-body-font-family);
}

/* Keep all code styles identical in both language versions. */
html.lang-ja pre,
html.lang-ja code,
html.lang-ja pre * {
  font-family: var(--bs-font-monospace) !important;
}

/* The Japanese body font must not change the appearance of inline code. */
html.lang-ja :not(pre) > code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bs-code-color);
}

/* Match language-switch callouts to the active navigation underline. */
blockquote {
  border-left-color: var(--bs-primary) !important;
}

/* Home-page feature cards follow the Tomlyn-style title-and-body treatment. */
.editing-feature-grid {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.editing-feature-card {
  overflow: hidden;
  background: transparent;
  border-color: rgba(var(--lunet-color-foreground-rgb), 0.24);
  border-radius: 0.5rem;
}

.editing-feature-card .card-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  color: #f2f7fb;
  background: #101B24;
  border-bottom-color: rgba(var(--lunet-color-foreground-rgb), 0.2);
}

.editing-feature-card .card-header > i {
  flex: 0 0 auto;
  width: 2.25rem !important;
  margin-top: 0;
  color: #8170FB;
  font-size: 2.25rem !important;
  line-height: 1;
  text-align: center;
}

.editing-feature-card .card-header > i::before {
  font-size: 2.25rem !important;
}

.editing-feature-card .card-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 300;
  line-height: 1.2;
  transform: translateY(0.25rem);
}

:root[data-bs-theme="light"] .editing-feature-card .card-header {
  color: #173345;
  background: #dcebf3;
  border-bottom-color: #c4d5df;
}

.editing-feature-card .card-body {
  padding: 1rem;
}

.editing-feature-card .card-text {
  margin-bottom: 0;
  line-height: 1.55;
}

.editing-example-card {
  margin: 3rem 0;
}

.editing-example-card .card-body {
  padding: 1rem;
}

.editing-example-card pre[class*="language-"] {
  margin: 0;
}

.editing-example-card .card-body > p:last-child {
  margin-bottom: 0;
}

#docs-sidebar-menu a.menu-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lunet-api #docs-sidebar-menu a.menu-link {
  font-size: 0.875rem;
  line-height: 1.35;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .lunet-api #docs-sidebar-menu {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .lunet-api .js-toc-content {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
}

@media (min-width: 1400px) {
  .lunet:not(.lunet-api) #docs-sidebar-menu {
    flex: 0 0 auto;
    width: 25%;
  }

  .lunet:not(.lunet-api) .js-toc-content {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .lunet-api #docs-sidebar-menu {
    width: 29.16666667%;
  }

  .lunet-api .js-toc-content {
    width: 54.16666667%;
  }
}
