:root {
    --idvkm-accent: #1760a0;
    --idvkm-accent-dark: #124d82;
    --idvkm-secondary: #2d3359;
    --idvkm-body: #999999;
    --idvkm-text: #555555;
    --idvkm-bg: #e5e5e5;
    --idvkm-surface: #ffffff;
    --idvkm-border: #d9d9d9;
}

body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    margin: 0;
    background-color: var(--idvkm-bg);
    min-height: 100vh;
    color: var(--idvkm-text);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .section-title {
    font-family: "Roboto Slab", Georgia, serif;
    color: var(--idvkm-secondary);
}

.site-navbar {
    background-color: var(--idvkm-surface);
    border-bottom: 1px solid var(--idvkm-border);
    box-shadow: 0 1px 4px rgba(45, 51, 89, 0.06);
}

.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--idvkm-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.site-navbar .navbar-brand:hover {
    color: var(--idvkm-secondary);
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logos img {
    height: 32px;
    width: auto;
}

.brand-logos .logo-divider {
    width: 1px;
    height: 28px;
    background: var(--idvkm-border);
}

.brand-logos .owl-idm-logo {
    height: 56px;
}

.owl-idm-logo-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b1f33;
    padding: 0.35rem 0.65rem;
    border-radius: 0.4rem;
}

.site-navbar .brand-subtitle {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--idvkm-body);
    line-height: 1.2;
}

.site-navbar .nav-link {
    color: var(--idvkm-text);
    font-weight: 500;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: var(--idvkm-accent);
}

.site-navbar .btn-link.nav-link {
    text-decoration: none;
}

.hero {
    background: linear-gradient(45deg, rgba(23, 96, 160, 1) 0%, rgb(89, 124, 139) 100%);
    color: #fff;
    border-radius: 0.25rem;
    padding: 2.5rem 2rem 3rem;
}

.hero h1,
.hero .hero-kicker,
.hero .section-title {
    color: #fff;
}

.hero-logo {
    height: 148px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.hero .hero-kicker {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.92;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.92);
}

.hero .btn-light {
    color: var(--idvkm-accent);
    font-weight: 500;
    border-radius: 3px;
    padding: 0.75rem 2rem;
}

.hero .btn-outline-light {
    border-radius: 3px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.section-block {
    margin-bottom: 3rem;
}

.section-block .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-block .section-lead {
    color: var(--idvkm-body);
    max-width: 52rem;
}

.feature-card {
    height: 100%;
    border: 0;
    border-top: 3px solid var(--idvkm-accent);
    box-shadow: 0 0.35rem 1rem rgba(45, 51, 89, 0.08);
}

.feature-card .card-body h2,
.feature-card .card-body h3 {
    font-size: 1.05rem;
    color: var(--idvkm-secondary);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

.feature-list li {
    break-inside: avoid;
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
    color: var(--idvkm-text);
}

.feature-list li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: var(--idvkm-accent);
    font-size: 0.85rem;
}

.why-card {
    background: var(--idvkm-secondary);
    color: rgba(255, 255, 255, 0.9);
    border: 0;
    border-radius: 0.25rem;
}

.why-card h2 {
    color: #fff;
    font-size: 1.25rem;
}

.experience-banner {
    background: var(--idvkm-surface);
    border-left: 4px solid var(--idvkm-accent);
    border-radius: 0.25rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(45, 51, 89, 0.06);
}

.experience-banner p {
    margin: 0;
    color: var(--idvkm-secondary);
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 500;
}

.status-badge {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.slug-preview {
    font-family: Consolas, monospace;
    background: #f5f5f5;
    border-left: 3px solid var(--idvkm-accent);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
}

.btn-primary {
    --bs-btn-bg: var(--idvkm-accent);
    --bs-btn-border-color: var(--idvkm-accent);
    --bs-btn-hover-bg: var(--idvkm-accent-dark);
    --bs-btn-hover-border-color: var(--idvkm-accent-dark);
    --bs-btn-active-bg: var(--idvkm-accent-dark);
    --bs-btn-active-border-color: var(--idvkm-accent-dark);
    border-radius: 3px;
    font-weight: 500;
}

.btn-outline-primary {
    --bs-btn-color: var(--idvkm-accent);
    --bs-btn-border-color: var(--idvkm-accent);
    --bs-btn-hover-bg: var(--idvkm-accent);
    --bs-btn-hover-border-color: var(--idvkm-accent);
    --bs-btn-active-bg: var(--idvkm-accent-dark);
    --bs-btn-active-border-color: var(--idvkm-accent-dark);
    border-radius: 3px;
}

a {
    color: var(--idvkm-accent);
}

a:hover {
    color: var(--idvkm-accent-dark);
}

.text-muted {
    color: var(--idvkm-body) !important;
}

.site-footer {
    background-color: var(--idvkm-secondary);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3rem;
    padding: 2rem 0 1.5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer .footer-title {
    color: #fff;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.site-footer .footer-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-logos img {
    height: 32px;
    width: auto;
    margin-right: 0.75rem;
    opacity: 0.95;
}

.site-footer .footer-logos .owl-idm-logo {
    height: 56px;
}

.site-footer .footer-admin-entry {
    display: inline-block;
    line-height: 0;
    opacity: 0.08;
    text-decoration: none !important;
}

.site-footer .footer-admin-entry:hover,
.site-footer .footer-admin-entry:focus {
    opacity: 0.22;
    outline: none;
}

.site-footer .footer-admin-entry img {
    display: block;
    width: 24px;
    height: 24px;
}

.login-panel {
    max-width: 420px;
}

.login-panel .card {
    border: 0;
    border-top: 3px solid var(--idvkm-accent);
}

.login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.login-logos img {
    height: 40px;
    width: auto;
}

.login-logos .owl-idm-logo {
    height: 80px;
}

.login-logos .owl-idm-logo-bg {
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
}

@media (max-width: 767px) {
    .feature-list {
        columns: 1;
    }

    .hero-logo {
        height: 112px;
    }

    .site-navbar .navbar-brand {
        font-size: 0.85rem;
    }

    .brand-logos img {
        height: 26px;
    }

    .brand-logos .owl-idm-logo {
        height: 44px;
    }

    .login-logos .owl-idm-logo {
        height: 64px;
    }
}

.console-page .site-footer {
    display: none;
}

.console-panel {
    border: 1px solid #333;
    background: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.console-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.85rem;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    color: #9cdcfe;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.75rem;
}

.console-panel-header .btn-link {
    color: #9cdcfe;
}

.console-output {
    margin: 0;
    background: #111;
    color: #d4d4d4;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8125rem;
    line-height: 1.45;
    min-height: calc(100vh - 220px);
    max-height: calc(100vh - 180px);
    overflow: auto;
    padding: 0.85rem 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.guide-page {
    max-width: 1200px;
    margin: 0 auto;
}

.guide-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef4fa 100%);
    border: 1px solid var(--idvkm-border);
    border-radius: 0.5rem;
    padding: 1.5rem 1.75rem;
}

.guide-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--idvkm-accent);
    font-weight: 600;
    margin: 0;
}

.guide-lead {
    max-width: 46rem;
    color: var(--idvkm-text);
}

.guide-toc {
    top: 1rem;
}

.guide-toc-list {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.875rem;
}

.guide-toc-list li {
    margin-bottom: 0.35rem;
}

.guide-toc-list a {
    color: var(--idvkm-secondary);
    text-decoration: none;
}

.guide-toc-list a:hover {
    color: var(--idvkm-accent);
    text-decoration: underline;
}

.guide-section {
    background: var(--idvkm-surface);
    border: 1px solid var(--idvkm-border);
    border-radius: 0.5rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 1rem;
}

.guide-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.guide-section h3 {
    font-size: 1.05rem;
    margin-top: 1.1rem;
    margin-bottom: 0.55rem;
    color: var(--idvkm-secondary);
}

.guide-section ol {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}

.guide-section ol li + li {
    margin-top: 0.3rem;
}

.guide-user {
    display: inline-block;
    background: #e8f1f8;
    color: var(--idvkm-secondary);
    border-left: 3px solid var(--idvkm-accent);
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.guide-table code {
    font-size: 0.85em;
}

.guide-tips {
    padding-left: 1.1rem;
}

.guide-tips li + li {
    margin-top: 0.45rem;
}

.guide-footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* LDAP browser tree */
.ldap-tree-card,
.ldap-attrs-card {
    min-height: 520px;
}

.ldap-tree {
    max-height: 560px;
    overflow: auto;
    font-size: 0.9rem;
}

.ldap-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ldap-node-row {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.2rem 0.35rem 0.2rem 0;
    border-radius: 0.35rem;
}

.ldap-node-row:hover {
    background: #f0f5fa;
}

.ldap-node-row.is-selected {
    background: #e2eef8;
}

.ldap-toggle {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    border: 1px solid var(--idvkm-border);
    border-radius: 0.25rem;
    background: #fff;
    color: var(--idvkm-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.ldap-toggle:hover:not(:disabled) {
    border-color: var(--idvkm-accent);
    color: var(--idvkm-accent);
}

.ldap-toggle-leaf {
    border-color: transparent;
    background: transparent;
    color: #bbb;
    cursor: default;
}

.ldap-label {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    color: inherit;
}

.ldap-rdn {
    font-weight: 600;
    color: var(--idvkm-secondary);
    word-break: break-all;
}

.ldap-oc {
    font-size: 0.75rem;
    color: #888;
}

.ldap-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.ldap-kind {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    border-radius: 0.1rem;
    background: #9aa3b2;
}

.ldap-kind-ou { background: #1760a0; }
.ldap-kind-container { background: #2d3359; }
.ldap-kind-group { background: #3d7a5a; }
.ldap-kind-user { background: #8a6d3b; }
.ldap-kind-computer { background: #6b5b95; }
.ldap-kind-entry { background: #9aa3b2; }

.ldap-node-error {
    padding: 0.35rem 0.5rem 0.35rem 2rem;
    color: #b42318;
    font-size: 0.8rem;
}

.ldap-filtered-out {
    display: none !important;
}

.ldap-attrs-card .card-header code {
    color: var(--idvkm-accent-dark);
}

/* the start page's audience cards: one column, the cards are narrow */
.feature-card .feature-list {
    columns: 1;
}
