.n6-landing-page {
    min-height: calc(100vh - 12rem);
}

.n6-image-link {
    width: 16px;
    height: 16px;
}

.n6-chip-remove {
    color: var(--bs-secondary-color);
    line-height: 1;
    text-decoration: none;
}
.n6-chip-remove:hover {
    color: var(--bs-danger);
}
.n6-chip-remove .material-icons,
.n6-chip-remove .material-icons-outlined {
    font-size: 1rem;
    vertical-align: middle;
}

.n6-date-picker {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.n6-date-picker-button .material-icons,
.n6-date-picker-button .material-icons-outlined {
    font-size: 1rem;
    vertical-align: middle;
}

.material-icons.n6-field-icon,
.material-icons-outlined.n6-field-icon {
    font-size: 1em;
    color: var(--bs-secondary-color);
    vertical-align: text-bottom;
}

/* lets a responsive grid inside a property view cell scroll horizontally instead of widening the page */
.n6-property-table > tbody > tr > td.w-100 {
    max-width: 0;
}

/* text size, header icons and password font like the consumer API (consumer-api.css) */
:root {
    --n6-result-grid-font-size: 0.8125rem;
}

.n6-result-grid {
    font-size: var(--n6-result-grid-font-size);
}

/* tabular figures for numeric and date/datetime values in tables, so digits line up (as in the consumer API) */
.n6-tabular-nums {
    font-variant-numeric: tabular-nums;
}

.n6-theme-toggle {
    color: var(--bs-secondary-color);
    text-decoration: none;
    line-height: 1;
}

.n6-theme-toggle:hover,
.n6-theme-toggle:focus {
    color: var(--bs-emphasis-color);
    text-decoration: none;
}

.n6-theme-toggle .material-icons,
.n6-theme-toggle .material-icons-outlined {
    font-size: 1.5rem;
    vertical-align: middle;
}

.avatar.n6-avatar-login {
    background-color: var(--bs-secondary);
}

.avatar.n6-avatar-login .material-icons,
.avatar.n6-avatar-login .material-symbols-outlined {
    font-size: 1.1rem;
}

input[type="password"] {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

input[type="password"]::placeholder {
    font-family: var(--bs-body-font-family), sans-serif;
}

/* type menu in the breadcrumbs (like consumer-api.css): only the subtle icon opens the menu */
.n6-type-menu-toggle {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.n6-type-menu-toggle:hover {
    color: var(--bs-emphasis-color);
}

.n6-type-menu-toggle .material-icons,
.n6-type-menu-toggle .material-icons-outlined {
    font-size: 1.25em;
    vertical-align: middle;
}

.n6-type-menu {
    max-height: 60vh;
    overflow-y: auto;
}

.breadcrumb-item:hover a.n6-type-menu-toggle,
.breadcrumb-item:hover .n6-type-menu a.dropdown-item {
    text-decoration-line: none;
}

/* live indicator of the namespaces page: a small dot, pulsing while requests come in */
.material-icons.n6-live,
.material-icons-outlined.n6-live,
.material-icons.n6-idle,
.material-icons-outlined.n6-idle {
    font-size: 0.75rem;
    vertical-align: middle;
}

.n6-live {
    animation: n6-live-pulse 2s ease-in-out infinite;
}

@keyframes n6-live-pulse {
    50% {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .n6-live {
        animation: none;
    }
}

/* namespace overview diagrams: fitted in a fixed area, full size and zoom in the full screen modal */
.n6-diagram-fixed {
    position: relative;
    height: 24rem;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: zoom-in;
}

.n6-diagram-click {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: zoom-in;
}

.n6-diagram-fixed .plantuml-diagram {
    max-width: 100%;
    max-height: 100%;
}

.n6-diagram-fixed svg {
    max-width: 100%;
    max-height: 24rem;
    width: auto;
    height: auto;
}

/*
 * Help documentation pages (HelpPage): modest heading scale, readable line length/height, and
 * clean styling for Markdown-rendered tables, code blocks, blockquotes, and the sidebar TOC.
 */
@media (min-width: 768px) {
    .n6-help-toc-col {
        width: 17rem;
        flex: 0 0 auto;
        padding-left: 1.5rem;
        padding-right: 0;
    }
}

.n6-help-toc {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-right: 0.75rem;
}

.n6-help-toc h5 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-emphasis-color);
    margin-top: 1.15rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.n6-help-toc h5:first-child {
    margin-top: 0;
}

.n6-help-toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.n6-help-toc li {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 0.15rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.n6-help-toc-icon {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
}

.n6-help-toc a {
    display: inline-block;
    padding: 0.05rem 0;
    color: var(--bs-body-color);
    text-decoration: none;
}

.n6-help-toc a:hover,
.n6-help-toc a:focus {
    color: var(--bs-link-color);
    text-decoration: underline;
}

.n6-help-toc a.fw-bold {
    color: var(--bs-primary);
}

.n6-help-toc .material-icons,
.n6-help-toc .material-icons-outlined {
    font-size: 0.95rem;
    line-height: 1;
}

.n6-help-toc-icon .material-icons,
.n6-help-toc-icon .material-icons-outlined {
    margin-right: 0;
}

.n6-help-toc li > .material-icons,
.n6-help-toc li > .material-icons-outlined {
    line-height: 1.225rem;
    margin-left: 0.15rem;
}

.n6-help-content .card-body {
    padding: 1.5rem 2rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.n6-help-topic {
    max-width: 64rem;
}

.n6-help-topic + .n6-help-topic {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bs-border-color);
}

.n6-help-topic h1 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.n6-help-topic h2 {
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
}

.n6-help-topic h3 {
    font-size: 1.03125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
}

.n6-help-topic h4,
.n6-help-topic h5,
.n6-help-topic h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.15rem;
    margin-bottom: 0.4rem;
}

.n6-help-topic p,
.n6-help-topic ul,
.n6-help-topic ol,
.n6-help-topic blockquote,
.n6-help-topic .alert {
    max-width: 52rem;
}

.n6-help-topic p {
    margin-bottom: 0.85rem;
}

.n6-help-topic ul,
.n6-help-topic ol {
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
}

.n6-help-topic li {
    margin-bottom: 0.25rem;
}

.n6-help-topic li > ul,
.n6-help-topic li > ol {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.n6-help-topic code {
    font-size: 0.875em;
    padding: 0.125rem 0.35rem;
    border-radius: 0.25rem;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-emphasis-color);
}

.n6-help-topic pre {
    margin: 0.85rem 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background-color: var(--bs-tertiary-bg);
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.n6-help-topic pre code {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

.n6-help-topic blockquote {
    margin: 0.85rem 0 1rem;
    padding: 0.6rem 1rem;
    border-left: 3px solid var(--bs-primary);
    background-color: var(--bs-tertiary-bg);
    border-radius: 0 0.25rem 0.25rem 0;
}

.n6-help-topic blockquote > :last-child {
    margin-bottom: 0;
}

.n6-help-topic table {
    width: 100%;
    margin: 1rem 0 1.25rem;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.5;
}

.n6-help-topic th,
.n6-help-topic td {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    vertical-align: top;
    text-align: left;
}

.n6-help-topic thead th {
    background-color: var(--bs-tertiary-bg);
    font-weight: 600;
}

.n6-help-topic tbody tr.intellij-row-even {
    background-color: color-mix(in srgb, var(--bs-tertiary-bg) 55%, transparent);
}

.n6-help-topic > :last-child {
    margin-bottom: 0;
}

@media print {
    body:has(#help) #dm-header,
    .n6-help-toc-col,
    .n6-help-footer {
        display: none !important;
    }

    .n6-help-content .card {
        border: 0;
        box-shadow: none;
    }

    .n6-help-content .card-body {
        padding: 0;
    }

    .n6-help-topic + .n6-help-topic {
        break-before: page;
        border-top: 0;
    }

    .n6-help-topic h1,
    .n6-help-topic h2,
    .n6-help-topic h3 {
        break-after: avoid;
    }
}
