html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


img.logo {
    width: 169px;
    height: 40px;
}

.backdrop-loading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-effect {
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blurs the content behind this element */
}





/*Bootstrap overrides...*/

header{
}

.form-select:required:has(option[value=""]:checked) {
    color: #6c757d;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}























/* ComplianTech site styles. Loads after Bootstrap 5.3. */

:root {
    --ct-ink: #1B2A3A;
    --ct-paper: #FAFAF8;
    --ct-surface: #FFFFFF;
    --ct-blue: #2F5D8A;
    --ct-blue-hover: #244A6F;
    --ct-green: #2E7D5B;
    --ct-amber: #A85F1E;
    --ct-rule: #D8DDE3;
    --ct-muted: #5B6878;
    --ct-band: #EEF2F5;
    --ct-font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --ct-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ct-ink: #E4E9EF;
        --ct-paper: #121A23;
        --ct-surface: #1A2430;
        --ct-blue: #8DB4DD;
        --ct-blue-hover: #A9C7E6;
        --ct-green: #6CC29A;
        --ct-amber: #E0A060;
        --ct-rule: #2E3B4A;
        --ct-muted: #9AA7B6;
        --ct-band: #17212C;
    }
}

:root[data-bs-theme="dark"] {
    --ct-ink: #E4E9EF;
    --ct-paper: #121A23;
    --ct-surface: #1A2430;
    --ct-blue: #8DB4DD;
    --ct-blue-hover: #A9C7E6;
    --ct-green: #6CC29A;
    --ct-amber: #E0A060;
    --ct-rule: #2E3B4A;
    --ct-muted: #9AA7B6;
    --ct-band: #17212C;
}

/* Base */
body {
    font-family: var(--ct-font);
    background: var(--ct-paper);
    color: var(--ct-ink);
    font-size: 1.0625rem;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--ct-ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

h3 {
    font-size: 1.3rem;
}

p, li {
    max-width: 68ch;
}

.lead {
    font-size: 1.2rem;
    color: var(--ct-muted);
    font-weight: 400;
}

.text-muted-ct {
    color: var(--ct-muted);
}

a {
    color: var(--ct-blue);
    text-underline-offset: 3px;
}

    a:hover {
        color: var(--ct-blue-hover);
    }

:focus-visible {
    outline: 3px solid var(--ct-blue);
    outline-offset: 2px;
}

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--ct-blue);
    --bs-btn-border-color: var(--ct-blue);
    --bs-btn-hover-bg: var(--ct-blue-hover);
    --bs-btn-hover-border-color: var(--ct-blue-hover);
    --bs-btn-active-bg: var(--ct-blue-hover);
    --bs-btn-color: var(--ct-paper);
    --bs-btn-hover-color: var(--ct-paper);
    --bs-btn-active-color: var(--ct-paper);
    font-weight: 500;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
}

.btn-outline-ct {
    border: 1px solid var(--ct-rule);
    color: var(--ct-ink);
    font-weight: 500;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    background: transparent;
}

    .btn-outline-ct:hover {
        border-color: var(--ct-blue);
        color: var(--ct-blue);
    }

/* Navigation */
.site-nav {
    background: var(--ct-surface);
    border-bottom: 1px solid var(--ct-rule);
    position: sticky;
    top: 0px;
}

    .site-nav .navbar-brand {
        font-weight: 700;
        color: var(--ct-ink);
        letter-spacing: -0.01em;
    }

    .site-nav .nav-link {
        color: var(--ct-ink);
        font-weight: 500;
    }

        .site-nav .nav-link:hover,
        .site-nav .nav-link.active {
            color: var(--ct-blue);
        }

    .site-nav .dropdown-menu {
        background: var(--ct-surface);
        border: 1px solid var(--ct-rule);
        border-radius: 4px;
    }

    .site-nav .dropdown-item {
        color: var(--ct-ink);
    }

        .site-nav .dropdown-item:hover {
            background: var(--ct-band);
            color: var(--ct-blue);
        }

    .site-nav .navbar-toggler {
        border-color: var(--ct-rule);
    }

/* Sections */
.section {
    padding: 5rem 0;
}

.section-band {
    background: var(--ct-band);
    border-top: 1px solid var(--ct-rule);
    border-bottom: 1px solid var(--ct-rule);
}

.section-tight {
    padding: 3.5rem 0;
}

/* Hero */
.hero {
    padding: 5rem 0 4.5rem;
}

    .hero .lead {
        margin-top: 1.25rem;
    }

/* Audit trail record: the signature element */
.audit-record {
    background: var(--ct-surface);
    border: 1px solid var(--ct-rule);
    border-left: 4px solid var(--ct-blue);
    border-radius: 2px;
    font-family: var(--ct-mono);
    font-size: 0.8rem;
    color: var(--ct-ink);
}

    .audit-record header {
        padding: 0.85rem 1.1rem;
        border-bottom: 1px solid var(--ct-rule);
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }

        .audit-record header strong {
            font-weight: 600;
        }

    .audit-record .table-wrap {
        overflow-x: auto;
    }

    .audit-record table {
        width: 100%;
        border-collapse: collapse;
        min-width: 480px;
    }

    .audit-record th,
    .audit-record td {
        padding: 0.6rem 1.1rem;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid var(--ct-rule);
    }

    .audit-record th {
        color: var(--ct-muted);
        font-weight: 500;
    }

    .audit-record tr:last-child td {
        border-bottom: 0;
    }

    .audit-record .signed {
        color: var(--ct-green);
        font-weight: 600;
    }

.audit-caption {
    font-size: 0.95rem;
    color: var(--ct-muted);
    margin-top: 0.9rem;
}

/* Findings list (amber flags) */
.findings {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .findings li {
        padding: 0.85rem 0 0.85rem 1.4rem;
        border-bottom: 1px solid var(--ct-rule);
        position: relative;
    }

        .findings li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 1.35rem;
            width: 8px;
            height: 8px;
            background: var(--ct-amber);
            border-radius: 1px;
        }

/* Ruled rows (services, deliverables) */
.ruled-row {
    border-top: 1px solid var(--ct-rule);
    padding: 2rem 0;
}

    .ruled-row:last-child {
        border-bottom: 1px solid var(--ct-rule);
    }

    .ruled-row h3 {
        margin-bottom: 0.5rem;
    }

        .ruled-row h3 a {
            color: var(--ct-ink);
            text-decoration: none;
        }

            .ruled-row h3 a:hover {
                color: var(--ct-blue);
            }

/* Process steps (a true sequence, so numbered) */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

    .steps li {
        counter-increment: step;
        position: relative;
        padding: 0 0 2rem 3.5rem;
        max-width: none;
    }

        .steps li::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            width: 2.25rem;
            height: 2.25rem;
            border: 1px solid var(--ct-blue);
            color: var(--ct-blue);
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-weight: 600;
        }

        .steps li::after {
            content: "";
            position: absolute;
            left: 1.1rem;
            top: 2.5rem;
            bottom: 0.4rem;
            width: 1px;
            background: var(--ct-rule);
        }

        .steps li:last-child::after {
            display: none;
        }

    .steps h3 {
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }

/* Pillars */
.pillar h3 {
    font-size: 1.15rem;
}

.pillar {
    border-top: 2px solid var(--ct-ink);
    padding-top: 1.25rem;
}

/* Reference list */
.ref-list {
    padding-left: 1.1rem;
}

    .ref-list li {
        margin-bottom: 0.4rem;
    }

/* Accordion (FAQ) */
.accordion {
    --bs-accordion-bg: var(--ct-surface);
    --bs-accordion-color: var(--ct-ink);
    --bs-accordion-border-color: var(--ct-rule);
    --bs-accordion-btn-color: var(--ct-ink);
    --bs-accordion-active-color: var(--ct-blue);
    --bs-accordion-active-bg: var(--ct-band);
    --bs-accordion-border-radius: 4px;
    --bs-accordion-inner-border-radius: 3px;
}

.accordion-button {
    font-weight: 500;
}

/* Forms */
.form-panel {
    background: var(--ct-surface);
    border: 1px solid var(--ct-rule);
    border-radius: 4px;
    padding: 2rem;
}

.form-control, .form-select {
    background-color: var(--ct-paper);
    color: var(--ct-ink);
    border-color: var(--ct-rule);
    border-radius: 4px;
}

    .form-control:focus, .form-select:focus {
        background-color: var(--ct-paper);
        color: var(--ct-ink);
        border-color: var(--ct-blue);
        box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ct-blue) 25%, transparent);
    }

.form-label {
    font-weight: 500;
}

/* CTA band */
.cta-band {
    background: var(--ct-ink);
    color: var(--ct-paper);
    padding: 4rem 0;
}

    .cta-band h2 {
        color: var(--ct-paper);
    }

    .cta-band p {
        color: color-mix(in srgb, var(--ct-paper) 80%, transparent);
    }

    .cta-band .btn-primary {
        --bs-btn-bg: var(--ct-paper);
        --bs-btn-border-color: var(--ct-paper);
        --bs-btn-color: var(--ct-ink);
        --bs-btn-hover-bg: var(--ct-band);
        --bs-btn-hover-border-color: var(--ct-band);
        --bs-btn-hover-color: var(--ct-ink);
    }

/* Footer */
.site-footer {
    border-top: 1px solid var(--ct-rule);
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
    color: var(--ct-muted);
}

    .site-footer h4 {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--ct-ink);
    }

    .site-footer ul {
        list-style: none;
        padding: 0;
    }

    .site-footer li {
        margin-bottom: 0.4rem;
    }

    .site-footer a {
        color: var(--ct-muted);
        text-decoration: none;
    }

        .site-footer a:hover {
            color: var(--ct-blue);
        }

/* Phones: system bar safe areas */
:root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .form-panel {
        padding: 1.25rem;
    }
}

/* Example gap register table */
.register-wrap {
    overflow-x: auto;
    border: 1px solid var(--ct-rule);
    border-radius: 2px;
    background: var(--ct-surface);
}

.register {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .register th, .register td {
        padding: 0.8rem 1rem;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid var(--ct-rule);
    }

    .register th {
        color: var(--ct-muted);
        font-weight: 500;
        background: var(--ct-band);
    }

    .register tr:last-child td {
        border-bottom: 0;
    }

    .register td:first-child {
        white-space: nowrap;
        font-weight: 600;
    }

.risk {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid currentColor;
}

.risk-high {
    color: var(--ct-amber);
}

.risk-medium {
    color: var(--ct-muted);
}

/* Keep ruled rows aligned to the container edge */
.row.ruled-row {
    margin-left: 0;
    margin-right: 0;
}

    .row.ruled-row > :first-child {
        padding-left: 0;
    }

    .row.ruled-row > :last-child {
        padding-right: 0;
    }

@media (max-width: 767.98px) {
    .row.ruled-row > * {
        padding-left: 0;
        padding-right: 0;
    }
}



/* ===== Added for legacy-system-remediation page ===== */

/* Before/after data flow diagram */
.diagram-wrap {
    overflow-x: auto;
}

.diagram {
    width: 100%;
    min-width: 680px;
    height: auto;
    display: block;
    font-family: var(--ct-font);
}

.dg-box {
    fill: var(--ct-surface);
    stroke: var(--ct-rule);
    stroke-width: 1.5;
}

.dg-box-after {
    stroke: var(--ct-blue);
}

.dg-text {
    fill: var(--ct-ink);
    font-size: 15px;
    font-weight: 500;
}

.dg-label {
    fill: var(--ct-muted);
    font-size: 14px;
    font-weight: 600;
}

.dg-flag {
    fill: var(--ct-amber);
    font-size: 13px;
}

.dg-ok {
    fill: var(--ct-green);
    font-size: 13px;
}

.dg-arrow {
    stroke: var(--ct-muted);
    stroke-width: 1.5;
}

.dg-arrowhead {
    fill: var(--ct-muted);
}

.dg-divider {
    stroke: var(--ct-rule);
    stroke-dasharray: 4 4;
}

/* Principle line under a solution area */
.supports {
    font-size: 0.9rem;
    color: var(--ct-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

    .supports strong {
        color: var(--ct-green);
        font-weight: 600;
    }

/* Example list inside ruled rows */
.examples {
    padding-left: 1.1rem;
    margin: 0.75rem 0 0;
}

    .examples li {
        margin-bottom: 0.35rem;
    }

/* Scenario panel */
.scenario {
    background: var(--ct-surface);
    border: 1px solid var(--ct-rule);
    border-left: 4px solid var(--ct-green);
    border-radius: 2px;
    padding: 2rem;
}

    .scenario h3 {
        font-size: 1.05rem;
        margin-top: 1.25rem;
    }

        .scenario h3:first-child {
            margin-top: 0;
        }

@media (max-width: 767.98px) {
    .scenario {
        padding: 1.25rem;
    }
}



/* ===== Added for about page ===== */

/* Founder photo: fixed portrait ratio so any headshot crops cleanly */
.founder-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--ct-rule);
    background: var(--ct-band);
    display: block;
}

.photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--ct-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 1rem;
}

.founder-name {
    font-size: 1.6rem;
    margin: 1.5rem 0 0.25rem;
}

.founder-title {
    color: var(--ct-muted);
    margin-bottom: 0;
}

/* Systems list beside the bio */
.systems {
    margin-top: 2rem;
}

    .systems h3 {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 1.25rem 0 0.4rem;
    }

    .systems p {
        font-size: 0.95rem;
        color: var(--ct-muted);
        margin: 0;
    }

/* Bio chapters */
.bio-chapter {
    padding: 1.75rem 0;
    border-top: 1px solid var(--ct-rule);
}

    .bio-chapter:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .bio-chapter h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

        .bio-chapter h3 span {
            color: var(--ct-muted);
            font-weight: 400;
        }

@media (min-width: 992px) {
    .founder-aside {
        position: sticky;
        top: 6rem;
    }
}



/* ===== Added for gxp-technology-consulting page ===== */
/* Translation table: two text columns, no bold ID column */
.register-plain td:first-child {
    white-space: normal;
    font-weight: 400;
}

.register-plain td, .register-plain th {
    width: 50%;
}



/* ===== Added for approach page ===== */
.dg-abbr {
    fill: var(--ct-ink);
    font-size: 16px;
    font-weight: 600;
}

.dg-sub {
    fill: var(--ct-muted);
    font-size: 12px;
}

.dg-link {
    stroke: var(--ct-blue);
    stroke-width: 1.25;
    stroke-dasharray: 5 4;
}

.dg-link-label {
    fill: var(--ct-blue);
    font-size: 12px;
}

.dg-note {
    fill: var(--ct-muted);
    font-size: 13px;
}

/* Partner program lists */
.partner-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .partner-list li {
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--ct-rule);
    }

        .partner-list li:last-child {
            border-bottom: 0;
        }



/* ===== Added for experience page ===== */
.case {
    border-top: 1px solid var(--ct-rule);
    padding: 2.5rem 0;
    scroll-margin-top: 6rem;
}

    .case:last-of-type {
        border-bottom: 1px solid var(--ct-rule);
    }

.case-id {
    font-family: var(--ct-mono);
    font-size: 0.85rem;
    color: var(--ct-blue);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.case-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ct-muted);
    border: 1px solid var(--ct-rule);
    border-radius: 2px;
    padding: 0.1rem 0.5rem;
    margin-left: 0.5rem;
}

.case h2 {
    font-size: 1.4rem;
    margin: 0.75rem 0 0;
}

.case-meta {
    margin: 0;
    font-size: 0.95rem;
}

    .case-meta dt {
        font-weight: 600;
        color: var(--ct-ink);
        margin-top: 0.9rem;
    }

        .case-meta dt:first-child {
            margin-top: 0;
        }

    .case-meta dd {
        color: var(--ct-muted);
        margin: 0.15rem 0 0;
    }

.case h3 {
    font-size: 1rem;
    margin: 1.25rem 0 0.35rem;
}

    .case h3:first-child {
        margin-top: 0;
    }

.case-index {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .case-index li {
        padding: 0.55rem 0;
        border-bottom: 1px solid var(--ct-rule);
        max-width: none;
    }

    .case-index a {
        text-decoration: none;
        color: var(--ct-ink);
    }

        .case-index a:hover {
            color: var(--ct-blue);
        }

    .case-index .case-id {
        margin-right: 0.6rem;
    }




/* ===== Added for security page ===== */
.dg-box-reject {
    fill: var(--ct-surface);
    stroke: var(--ct-amber);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.dg-arrow-reject {
    stroke: var(--ct-amber);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

.dg-arrowhead-reject {
    fill: var(--ct-amber);
}

.dg-bracket {
    stroke: var(--ct-muted);
    stroke-width: 1.5;
    fill: none;
}

.dg-box-dashed {
    fill: var(--ct-surface);
    stroke: var(--ct-rule);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.dg-ok-strong {
    fill: var(--ct-green);
    font-size: 13px;
    font-weight: 600;
}

.diagram-caption {
    font-size: 0.95rem;
    color: var(--ct-muted);
    margin-top: 1rem;
    max-width: 68ch;
}

.status-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--ct-green);
    color: var(--ct-green);
    border-radius: 2px;
    font-weight: 600;
}
/* ===== Added for insights pages ===== */
.topic {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ct-blue);
    border: 1px solid var(--ct-rule);
    border-radius: 2px;
    padding: 0.1rem 0.5rem;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .article-list > li {
        border-top: 1px solid var(--ct-rule);
        padding: 2rem 0;
        max-width: none;
    }

        .article-list > li:last-child {
            border-bottom: 1px solid var(--ct-rule);
        }

    .article-list h2 {
        font-size: 1.35rem;
        margin: 0.75rem 0 0.5rem;
    }

        .article-list h2 a {
            color: var(--ct-ink);
            text-decoration: none;
        }

            .article-list h2 a:hover {
                color: var(--ct-blue);
            }

.article-meta {
    font-size: 0.9rem;
    color: var(--ct-muted);
}

.crumbs {
    font-size: 0.9rem;
    color: var(--ct-muted);
    margin-bottom: 1.5rem;
}

    .crumbs a {
        color: var(--ct-muted);
    }

.article-header {
    padding: 4rem 0 2.5rem;
}

    .article-header h1 {
        font-size: clamp(1.9rem, 3.6vw, 2.75rem);
        max-width: 26ch;
        margin-top: 0.75rem;
    }

.article-body {
    max-width: 70ch;
    font-size: 1.075rem;
    line-height: 1.7;
}

    .article-body h2 {
        font-size: 1.4rem;
        margin: 2.75rem 0 0.75rem;
    }

    .article-body h3 {
        font-size: 1.15rem;
        margin: 2rem 0 0.5rem;
    }

    .article-body ul, .article-body ol {
        padding-left: 1.2rem;
    }

    .article-body li {
        margin-bottom: 0.5rem;
    }

.takeaways {
    background: var(--ct-surface);
    border: 1px solid var(--ct-rule);
    border-left: 4px solid var(--ct-green);
    border-radius: 2px;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
}

    .takeaways h2 {
        font-size: 1.05rem;
        margin: 0 0 0.75rem;
    }

    .takeaways ul {
        margin: 0;
    }

.author-box {
    border-top: 1px solid var(--ct-rule);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: var(--ct-muted);
}

    .author-box strong {
        color: var(--ct-ink);
    }
