/*
Axis Tenebris

Graphite planes, concentric geometry, vertical editorial labels,
strict monochrome hierarchy, and restrained square controls.
*/

html[data-design-theme="axis-tenebris"] {
    color-scheme: dark;

    --bg: #34393a;
    --surface: #303536;
    --surface-soft: #393e3f;
    --surface-subtle: #2b3031;
    --surface-strong: #242829;
    --topbar: #34393a;

    --ink: #f1efe9;
    --ink-soft: #d6d5d0;
    --muted: #aaaead;

    --line: #555b5c;
    --line-strong: #757b7c;

    --primary: #f1efe9;
    --primary-hover: #ffffff;
    --primary-soft: #454a4b;
    --on-primary: #191b1b;

    --accent: #f1efe9;
    --accent-hover: #ffffff;
    --accent-soft: #454a4b;

    --danger: #d9877f;
    --warning: #d7b36b;
    --success: #8db49c;

    --axis-sidebar: #171818;
    --axis-sidebar-deep: #111212;
    --axis-graphite: #34393a;
    --axis-panel: #2d3233;
    --axis-panel-soft: #383d3e;
    --axis-white: #f1efe9;
    --axis-muted: #aaaead;
    --axis-line: #555b5c;

    --radius: 2px;
    --shadow: none;
}

/*
Axis Tenebris is intentionally dark.
The global light/dark control does not convert it into a light theme.
*/

html[data-design-theme="axis-tenebris"][data-theme="light"],
html[data-design-theme="axis-tenebris"][data-theme="dark"] {
    color-scheme: dark;

    --bg: #34393a;
    --surface: #303536;
    --surface-soft: #393e3f;
    --surface-subtle: #2b3031;
    --surface-strong: #242829;
    --topbar: #34393a;

    --ink: #f1efe9;
    --ink-soft: #d6d5d0;
    --muted: #aaaead;

    --line: #555b5c;
    --line-strong: #757b7c;

    --primary: #f1efe9;
    --primary-hover: #ffffff;
    --primary-soft: #454a4b;
    --on-primary: #191b1b;

    --accent: #f1efe9;
    --accent-hover: #ffffff;
    --accent-soft: #454a4b;
}

/* Application shell */

html[data-design-theme="axis-tenebris"] body,
html[data-design-theme="axis-tenebris"] .app-shell,
html[data-design-theme="axis-tenebris"] .main-column,
html[data-design-theme="axis-tenebris"] .main-content {
    color: var(--axis-white);
    background: var(--axis-graphite);
}

html[data-design-theme="axis-tenebris"] body {
    background:
        linear-gradient(
            90deg,
            var(--axis-sidebar-deep) 0,
            var(--axis-sidebar) var(--sidebar-width),
            var(--axis-graphite) var(--sidebar-width)
        );
}

html[data-design-theme="axis-tenebris"] .main-content {
    position: relative;
    isolation: isolate;
    padding-top: 28px;
}

/* Sidebar */

html[data-design-theme="axis-tenebris"] .sidebar {
    color: var(--axis-white);
    background:
        linear-gradient(
            180deg,
            var(--axis-sidebar) 0%,
            var(--axis-sidebar-deep) 100%
        );
    border-inline-end: 1px solid #414546;
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"] .brand-mark {
    color: var(--axis-white);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

html[data-design-theme="axis-tenebris"] .brand-lockup strong {
    color: var(--axis-white);
    font-family: var(--font-display);
    font-weight: 500;
}

html[data-design-theme="axis-tenebris"] .brand-lockup small,
html[data-design-theme="axis-tenebris"] .nav-label {
    color: #8f9392;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

html[data-design-theme="axis-tenebris"] .nav-link {
    position: relative;
    margin-inline: 0;
    color: #cacbc7;
    background: transparent;
    border: 0;
    border-inline-start: 3px solid transparent;
    border-radius: 0;
}

html[data-design-theme="axis-tenebris"] .nav-link:hover {
    color: var(--axis-white);
    background: rgb(255 255 255 / 4%);
}

html[data-design-theme="axis-tenebris"] .nav-link.is-active {
    color: var(--axis-white);
    background:
        linear-gradient(
            90deg,
            rgb(255 255 255 / 7%) 0%,
            transparent 92%
        );
    border-inline-start-color: var(--axis-white);
}

html[data-design-theme="axis-tenebris"] .nav-link.is-active svg {
    color: var(--axis-white);
}

html[data-design-theme="axis-tenebris"] .sidebar-footer {
    color: #a0a39f;
    border-top-color: #3b3e3e;
}

html[data-design-theme="axis-tenebris"] .environment-dot {
    background: var(--axis-white);
    box-shadow: none;
}

/* Top bar */

html[data-design-theme="axis-tenebris"] .topbar {
    color: var(--axis-white);
    background: var(--axis-graphite);
    border-bottom: 1px solid var(--axis-line);
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"] .global-search {
    color: var(--axis-white);
    background: transparent;
    border-color: #747a7a;
    border-radius: 1px;
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"] .global-search:focus-within {
    border-color: var(--axis-white);
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"] .global-search input {
    color: var(--axis-white);
    background: transparent;
}

html[data-design-theme="axis-tenebris"]
    .global-search input::placeholder {
    color: #b4b7b4;
}

html[data-design-theme="axis-tenebris"] .global-search kbd {
    color: var(--axis-muted);
    background: transparent;
    border-color: var(--axis-line);
    border-radius: 0;
}

html[data-design-theme="axis-tenebris"] .icon-button {
    color: var(--axis-white);
    background: transparent;
    border-color: transparent;
}

html[data-design-theme="axis-tenebris"] .icon-button:hover {
    color: #191b1b;
    background: var(--axis-white);
}

/* Account controls */

html[data-design-theme="axis-tenebris"] .profile-menu-trigger {
    color: var(--axis-white);
}

html[data-design-theme="axis-tenebris"] .profile-avatar {
    color: var(--axis-white);
    background: transparent;
    border: 1px solid var(--axis-white);
}

html[data-design-theme="axis-tenebris"] .profile-menu {
    color: var(--axis-white);
    background: #25292a;
    border: 1px solid var(--axis-line);
    border-radius: 1px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 22%);
}

html[data-design-theme="axis-tenebris"] .profile-menu select {
    color: var(--axis-white);
    background: #303536;
    border-color: var(--axis-line);
}

/* Buttons */

html[data-design-theme="axis-tenebris"] .button {
    border-radius: 1px;
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"] .button--primary {
    color: #191b1b;
    background: var(--axis-white);
    border-color: var(--axis-white);
}

html[data-design-theme="axis-tenebris"] .button--primary:hover {
    color: #000000;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"] .button--secondary {
    color: var(--axis-white);
    background: transparent;
    border-color: #c5c6c1;
}

html[data-design-theme="axis-tenebris"] .button--secondary:hover {
    color: #191b1b;
    background: var(--axis-white);
    border-color: var(--axis-white);
}

/* Forms */

html[data-design-theme="axis-tenebris"] input,
html[data-design-theme="axis-tenebris"] select,
html[data-design-theme="axis-tenebris"] textarea {
    color: var(--axis-white);
    background: #2b3031;
    border-color: var(--axis-line);
    border-radius: 1px;
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"] input::placeholder,
html[data-design-theme="axis-tenebris"] textarea::placeholder {
    color: #999d9c;
}

html[data-design-theme="axis-tenebris"] input:focus,
html[data-design-theme="axis-tenebris"] select:focus,
html[data-design-theme="axis-tenebris"] textarea:focus {
    border-color: var(--axis-white);
    box-shadow: none;
}

/* Project overview */

html[data-design-theme="axis-tenebris"] .project-overview {
    position: relative;
    isolation: isolate;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    clip-path: none;
}

html[data-design-theme="axis-tenebris"] .project-overview::before {
    position: absolute;
    z-index: -1;
    top: -250px;
    left: 18%;
    width: 720px;
    height: 720px;
    content: "";
    pointer-events: none;
    border: 2px solid rgb(15 17 17 / 18%);
    border-radius: 50%;
    box-shadow:
        0 0 0 56px rgb(15 17 17 / 6%),
        0 0 0 112px rgb(15 17 17 / 5%),
        0 0 0 168px rgb(15 17 17 / 4%);
}

html[data-design-theme="axis-tenebris"] .project-hero {
    position: relative;
    z-index: 1;
    min-height: 230px;
    padding: 40px 52px 30px;
}

html[data-design-theme="axis-tenebris"] .project-hero h1 {
    margin-top: 24px;
    color: var(--axis-white);
    font-family: var(--font-sans);
    font-size: clamp(54px, 6.6vw, 96px);
    font-weight: 650;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

html[data-design-theme="axis-tenebris"] .project-hero .page-summary {
    margin-top: 18px;
    color: var(--axis-white);
    font-size: 19px;
}

html[data-design-theme="axis-tenebris"] .back-link {
    color: var(--axis-white);
}

html[data-design-theme="axis-tenebris"] .back-link:hover {
    opacity: 0.72;
}

html[data-design-theme="axis-tenebris"] .eyebrow,
html[data-design-theme="axis-tenebris"] .section-kicker {
    color: var(--axis-white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* Project financial strip */

html[data-design-theme="axis-tenebris"] .project-finance-band {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 34px 34px;
    padding: 0;
    overflow: hidden;
    background: rgb(31 35 35 / 48%);
    border: 1px solid var(--axis-line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

html[data-design-theme="axis-tenebris"]
    .project-finance-band > div {
    min-height: 106px;
    padding: 26px 34px;
    background: transparent;
    border: 0;
    border-inline-end: 1px solid var(--axis-line);
}

html[data-design-theme="axis-tenebris"]
    .project-finance-band > div:last-child {
    border-inline-end: 0;
}

html[data-design-theme="axis-tenebris"]
    .project-finance-band span {
    color: #e3e2dd;
    font-size: 10px;
    font-weight: 550;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

html[data-design-theme="axis-tenebris"]
    .project-finance-band strong {
    display: block;
    margin-top: 13px;
    color: var(--axis-white);
    font-family: var(--font-sans);
    font-size: 34px;
    font-weight: 550;
    line-height: 1;
}

html[data-design-theme="axis-tenebris"]
    .project-finance-band small {
    display: block;
    margin-top: 9px;
    color: var(--axis-muted);
}

/* Project navigation */

html[data-design-theme="axis-tenebris"] .detail-nav {
    gap: 42px;
    margin: 0 34px;
    padding: 0;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid #a5a9a7;
    scrollbar-width: none;
}

html[data-design-theme="axis-tenebris"]
    .detail-nav::-webkit-scrollbar {
    display: none;
}

html[data-design-theme="axis-tenebris"] .detail-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 17px 0 15px;
    color: #d0d1cd;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 450;
    white-space: nowrap;
}

html[data-design-theme="axis-tenebris"] .detail-nav a:hover {
    color: var(--axis-white);
}

html[data-design-theme="axis-tenebris"]
    .detail-nav a.is-active {
    color: var(--axis-white);
    border-bottom-color: var(--axis-white);
    font-weight: 650;
}

/* General content sections */

html[data-design-theme="axis-tenebris"] .detail-section {
    padding: 38px 34px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"]
    .detail-section__heading--actions {
    align-items: center;
    gap: 28px;
}

html[data-design-theme="axis-tenebris"] .detail-section h2 {
    color: var(--axis-white);
}

/* Outsourced-services composition */

html[data-design-theme="axis-tenebris"]
    .outsourced-services-section {
    position: relative;
    padding: 38px 34px 0 132px;
}

html[data-design-theme="axis-tenebris"]
    .outsourced-services-section::before {
    position: absolute;
    top: 31px;
    left: 38px;
    display: flex;
    align-items: center;
    height: 280px;
    padding-block: 34px;
    content: "EXTERNAL SERVICES";
    color: var(--axis-white);
    border-top: 1px solid var(--axis-white);
    border-bottom: 1px solid var(--axis-white);
    font-size: 10px;
    font-weight: 550;
    letter-spacing: 0.24em;
    text-orientation: mixed;
    writing-mode: vertical-rl;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-heading {
    min-width: 0;
}

html[data-design-theme="axis-tenebris"]
    .outsourced-services-section .section-kicker {
    margin: 0 0 16px;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-heading h2 {
    max-width: 720px;
    margin: 0;
    color: var(--axis-white);
    font-family: var(--font-sans);
    line-height: 0.9;
    text-transform: uppercase;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-heading h2 span {
    display: block;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-heading h2 span:first-child {
    font-size: clamp(48px, 5.2vw, 76px);
    font-weight: 600;
    letter-spacing: 0.055em;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-heading h2 span:last-child {
    margin-top: 13px;
    font-size: clamp(31px, 3.3vw, 47px);
    font-weight: 300;
    letter-spacing: 0.27em;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-heading h2::after {
    display: none;
    content: none;
}

html[data-design-theme="axis-tenebris"]
    .outsourced-services-intro {
    max-width: 620px;
    margin: 16px 0 0;
    color: #d2d3cf;
    font-size: 14px;
    line-height: 1.55;
}

/* Real shared-header table */

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table-shell {
    margin-top: 22px;
    overflow-x: auto;
    background: rgb(37 41 42 / 54%);
    border: 1px solid var(--axis-line);
    border-radius: 0;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    color: var(--axis-white);
    table-layout: fixed;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th,
html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table td {
    padding: 17px 24px;
    text-align: start;
    vertical-align: middle;
    border-inline-end: 1px solid var(--axis-line);
    border-bottom: 1px solid var(--axis-line);
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:last-child,
html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table td:last-child {
    border-inline-end: 0;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table tbody tr:last-child td {
    border-bottom: 0;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table thead th {
    color: #d4d5d1;
    background: rgb(22 25 25 / 28%);
    font-size: 9px;
    font-weight: 550;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table tbody td {
    color: var(--axis-white);
    background: transparent;
    font-size: 13px;
    font-weight: 450;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table tbody tr:hover td {
    background: rgb(255 255 255 / 3%);
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:nth-child(1) {
    width: 22%;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:nth-child(2) {
    width: 15%;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:nth-child(3) {
    width: 14%;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:nth-child(4) {
    width: 20%;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:nth-child(5) {
    width: 9%;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:nth-child(6) {
    width: 16%;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-table th:nth-child(7) {
    width: 4%;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-provider {
    color: var(--axis-white);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-provider:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-total {
    font-size: 15px !important;
    font-weight: 550 !important;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-open {
    padding-inline: 10px !important;
    text-align: center !important;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-open a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--axis-white);
    text-decoration: none;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-open svg {
    width: 16px;
    height: 16px;
}

html[data-design-theme="axis-tenebris"]
    .axis-outsourced-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0 0;
    color: #c4c6c2;
    font-size: 12px;
}

/* Monochrome status pills */

html[data-design-theme="axis-tenebris"] .outsourced-status,
html[data-design-theme="axis-tenebris"]
    .outsourced-status--sent,
html[data-design-theme="axis-tenebris"]
    .outsourced-status--in_progress,
html[data-design-theme="axis-tenebris"]
    .outsourced-status--completed,
html[data-design-theme="axis-tenebris"]
    .outsourced-status--cancelled {
    min-height: 25px;
    padding: 3px 12px;
    color: var(--axis-white);
    background: transparent;
    border: 1px solid #bcbeba;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Empty state */

html[data-design-theme="axis-tenebris"]
    .outsourced-empty-state {
    margin-top: 24px;
    padding: 30px;
    color: var(--axis-white);
    background: rgb(37 41 42 / 54%);
    border: 1px solid var(--axis-line);
    border-radius: 0;
    box-shadow: none;
}

html[data-design-theme="axis-tenebris"]
    .outsourced-empty-state__icon {
    color: var(--axis-white);
    background: transparent;
    border: 1px solid var(--axis-line);
    border-radius: 0;
}

/* Generic tables */

html[data-design-theme="axis-tenebris"] .data-table {
    color: var(--axis-white);
    background: transparent;
    border-color: var(--axis-line);
    border-radius: 0;
}

html[data-design-theme="axis-tenebris"]
    .data-table thead th {
    color: #d7d8d4;
    background: #2a2f30;
    border-color: var(--axis-line);
    font-size: 9px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

html[data-design-theme="axis-tenebris"]
    .data-table tbody td {
    color: var(--axis-white);
    background: transparent;
    border-color: var(--axis-line);
}

html[data-design-theme="axis-tenebris"]
    .data-table tbody tr:hover td {
    background: rgb(255 255 255 / 3%);
}

/* Responsive layout */

@media (max-width: 1100px) {
    html[data-design-theme="axis-tenebris"]
        .project-finance-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-design-theme="axis-tenebris"]
        .project-finance-band > div:nth-child(2) {
        border-inline-end: 0;
    }

    html[data-design-theme="axis-tenebris"]
        .project-finance-band > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--axis-line);
    }

    html[data-design-theme="axis-tenebris"]
        .outsourced-services-section {
        padding-inline: 34px;
    }

    html[data-design-theme="axis-tenebris"]
        .outsourced-services-section::before {
        display: none;
    }

    html[data-design-theme="axis-tenebris"]
        .axis-outsourced-table-shell {
        overflow-x: auto;
    }
}

@media (max-width: 760px) {
    html[data-design-theme="axis-tenebris"]
        .project-hero {
        min-height: auto;
        padding: 28px 20px;
    }

    html[data-design-theme="axis-tenebris"]
        .project-hero h1 {
        font-size: 52px;
    }

    html[data-design-theme="axis-tenebris"]
        .project-finance-band {
        grid-template-columns: 1fr;
        margin-inline: 20px;
    }

    html[data-design-theme="axis-tenebris"]
        .project-finance-band > div {
        min-height: auto;
        border-inline-end: 0;
        border-bottom: 1px solid var(--axis-line);
    }

    html[data-design-theme="axis-tenebris"]
        .project-finance-band > div:last-child {
        border-bottom: 0;
    }

    html[data-design-theme="axis-tenebris"] .detail-nav {
        margin-inline: 20px;
    }

    html[data-design-theme="axis-tenebris"]
        .detail-section {
        padding-inline: 20px;
    }

    html[data-design-theme="axis-tenebris"]
        .outsourced-services-section h2 {
        font-size: 40px;
        letter-spacing: 0.02em;
    }

    html[data-design-theme="axis-tenebris"]
        .outsourced-service-card__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    html[data-design-theme="axis-tenebris"]
        .detail-section__heading--actions {
        align-items: stretch;
    }

    html[data-design-theme="axis-tenebris"]
        .detail-section__heading--actions .button {
        width: 100%;
        justify-content: center;
    }
}