.diagram-container {
    width: 96%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    background-color: rgba(var(--blue-darker), 0.4);
    border: 1px solid rgba(var(--blue-mid), 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.diagram-header {
    background-color: rgba(var(--blue-mid), 0.2);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(var(--blue-mid), 0.3);
}

.diagram-title {
    margin: 0;
    color: rgb(var(--blue-mid));
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.svg-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.architecture-svg {
    width: 100%;
    max-width: 900px;
    height: auto;
    min-height: 240px;
}

/* Nodes */
.node-rect {
    fill: #081a14;
    stroke: rgb(var(--blue-mid));
    stroke-width: 1.5px;
    transition: all 0.3s ease;
}

.repo-node {
    stroke: rgb(var(--blue-bright));
    filter: drop-shadow(0 0 4px rgba(var(--blue-bright), 0.4));
}

.data-node {
    fill: rgba(var(--blue-mid), 0.15);
}

/* Platform / workflow boxes that sit below the application stack — same
   shape as node-rect, slightly darker fill and a more muted stroke so
   the application row reads as the primary subject and the platform
   row reads as the supporting surface. */
.platform-node {
    fill: rgba(var(--blue-darker), 0.55);
    stroke: rgba(var(--blue-mid), 0.65);
}

/* Connector phrase between the application stack and the platform band.
   Italic + lower-contrast so it reads as annotation rather than as a
   node label. */
.connector-text {
    fill: rgba(var(--blue-mid), 0.9);
    font-family: monospace;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.4px;
}

/* Dotted upward indicators from each platform box to the application
   stack. Visually says "this supports that" without committing to a
   full bidirectional arrow that would imply direct call-graph
   connectivity. */
.platform-link {
    fill: none;
    stroke: rgba(var(--blue-mid), 0.4);
    stroke-width: 1px;
}

.node-text {
    fill: #E0E0E0;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
}

.node-subtext {
    fill: #d1dbd7;
    font-family: monospace;
    font-size: 12px;
}

/* Paths */
.path-line {
    fill: none;
    stroke-width: 1.5px;
}

.static-path {
    stroke: rgba(var(--blue-mid), 0.3);
}

.pulse-path {
    stroke: rgb(var(--blue-bright));
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 4px rgb(var(--blue-bright)));
    stroke-dasharray: 10, 1000;
    animation: pulse-flow linear infinite;
    will-change: stroke-dashoffset, opacity;
}

.path-1 { animation-duration: 2s; animation-delay: 0s; }
.path-2 { animation-duration: 2s; animation-delay: 0.7s; }
.path-3 { animation-duration: 2s; animation-delay: 1.4s; }

@keyframes pulse-flow {
    0% {
        stroke-dashoffset: 1000;
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Lint boundary annotation */
.lint-bracket {
    fill: none;
    stroke: rgba(var(--blue-bright), 0.5);
    stroke-width: 1.5px;
    stroke-dasharray: 4 4;
}

.lint-rect {
    fill: rgba(var(--blue-bright), 0.06);
    stroke: rgba(var(--blue-bright), 0.5);
    stroke-width: 1.5px;
    stroke-dasharray: 4 4;
}

.lint-title {
    fill: rgb(var(--blue-bright));
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lint-subtext {
    fill: #b8d8c9;
    font-family: monospace;
    font-size: 11.5px;
}

/* Mobile */
@media (max-width: 850px) {
    .svg-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1.5rem;
    }

    .architecture-svg {
        min-height: 220px;
        min-width: 720px;
    }
}
