/* ==============================================
   COMPLIANCE DEFENSE — Page-Specific Styles
   Left/right hero layout with a featured-article
   card, plus "The Release Gauntlet" problem
   timeline (classified-document aesthetic).
   ============================================== */

/* ---------- Hero: split layout with article card ---------- */

.sol-hero-split {
    text-align: left;
    padding: 80px 40px 80px;
}

.sol-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.sol-hero-text h1 {
    font-size: 48px;
    line-height: 56px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 28px;
    max-width: none;
    text-align: left;
}

.sol-hero-subs {
    margin-bottom: 36px;
    max-width: 520px;
}

.sol-hero-subs p {
    margin: 0;
    color: var(--text-secondary);
}

.sol-hero-sub-lead {
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px !important;
}

.sol-hero-sub-body {
    font-size: 17px;
    line-height: 26px;
}

.sol-hero-split .cta-buttons {
    justify-content: flex-start;
}

/* Featured-article card — editorial / blog-preview style */

.sol-hero-article {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
        0 20px 50px -20px rgba(0, 0, 0, 0.55),
        0 8px 20px -10px rgba(0, 0, 0, 0.4);
}

.sol-hero-article:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
        0 28px 60px -20px rgba(0, 0, 0, 0.6),
        0 10px 30px -10px rgba(0, 212, 255, 0.18);
}

.sol-hero-article-image {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #0f1419;
}

.sol-hero-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    transition: transform 0.4s ease;
}

.sol-hero-article:hover .sol-hero-article-image img {
    transform: scale(1.03);
}

.sol-hero-article-kicker {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: rgba(10, 14, 26, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.sol-hero-article-body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sol-hero-article-title {
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.2px;
}

.sol-hero-article-excerpt {
    font-size: 15px;
    line-height: 23px;
    color: #4b5563;
    margin: 0;
}

.sol-hero-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
}

.sol-hero-article-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    flex-wrap: wrap;
}

.sol-hero-article-author {
    color: #111827;
    font-weight: 600;
}

.sol-hero-article-sep {
    color: #9ca3af;
}

.sol-hero-article-time {
    color: #6b7280;
}

.sol-hero-article-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0891b2;
    font-weight: 700;
    white-space: nowrap;
}

.sol-hero-article-cta svg {
    transition: transform 0.25s ease;
}

.sol-hero-article:hover .sol-hero-article-cta svg {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .sol-hero-split {
        padding: 70px 32px 60px;
    }

    .sol-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sol-hero-subs {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .sol-hero-split {
        padding: 60px 20px 50px;
    }

    .sol-hero-text h1 {
        font-size: 34px;
        line-height: 42px;
    }

    .sol-hero-sub-lead {
        font-size: 19px;
        line-height: 26px;
    }

    .sol-hero-sub-body {
        font-size: 16px;
        line-height: 24px;
    }

    .sol-hero-split .cta-buttons {
        justify-content: center;
    }

    .sol-hero-article-title {
        font-size: 19px;
        line-height: 26px;
    }

    .sol-hero-article-body {
        padding: 18px 20px 18px;
    }
}

/* ==============================================
   "The Release Gauntlet" problem timeline.
   ============================================== */

.gauntlet {
    max-width: 1016px;
    margin: 0 auto;
    background: linear-gradient(180deg, #0c1018 0%, #080b13 100%);
    border: 1px solid rgba(160, 174, 192, 0.18);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- Classification stripe (defense / doc feel) ---------- */

.gauntlet-stripe {
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #fbbf24 0 14px,
        #0c1018 14px 20px,
        #ff6464 20px 34px,
        #0c1018 34px 40px
    );
}

.gauntlet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px 16px;
    border-bottom: 1px solid rgba(160, 174, 192, 0.15);
    background: linear-gradient(180deg, #11151f 0%, #0c1018 100%);
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
}

.gauntlet-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gauntlet-form-id {
    font-size: 10px;
    letter-spacing: 1.8px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.gauntlet-form-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.gauntlet-status-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gauntlet-status-label {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.gauntlet-status-value {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--before-red);
    text-transform: uppercase;
}

/* ---------- Timeline ---------- */

.gauntlet-timeline {
    position: relative;
    padding: 44px 32px 40px;
}

.gauntlet-rail {
    position: absolute;
    left: 56px;
    right: 56px;
    /* Rail center lines up with the center of every station's dot.
       Dot center y (from stations top) is 48px; stations top is at
       timeline padding-top (44px); rail height is 3px, so rail top
       = 44 + 48 - 1.5 = 90.5 → 91px. */
    top: 91px;
    height: 3px;
    background: linear-gradient(
        90deg,
        #34f8b6 0%,
        #34f8b6 6%,
        #fbbf24 10%,
        #ff6464 50%,
        #ff6464 90%,
        #7d7d7d 96%,
        #7d7d7d 100%
    );
    border-radius: 2px;
    opacity: 0.7;
}

.gauntlet-rail::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 12px solid #7d7d7d;
    border-top: 7.5px solid transparent;
    border-bottom: 7.5px solid transparent;
}

.gauntlet-stations {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr auto;
    align-items: start;
    gap: 18px;
    position: relative;
    z-index: 1;
}

/* ---------- Endpoints (start / end) ---------- */

.gauntlet-endpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 100px;
}

.gauntlet-endpoint-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0c1018;
    border: 3px solid var(--el-green);
    box-shadow: 0 0 14px rgba(52, 248, 182, 0.4);
    position: relative;
    z-index: 2;
    /* Endpoint dot (24px) center at y = 36 + 12 = 48, matching the obstacle
       dot center (22px time pill + 16px gap + half of 20px dot = 48). */
    margin-top: 36px;
}

.gauntlet-endpoint-end .gauntlet-endpoint-dot {
    border-color: #7d7d7d;
    box-shadow: none;
}

.gauntlet-endpoint-label {
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    text-align: center;
    line-height: 14px;
}

.gauntlet-endpoint-start .gauntlet-endpoint-label {
    color: var(--el-green);
}

.gauntlet-endpoint-end .gauntlet-endpoint-label {
    color: var(--text-muted);
}

.gauntlet-endpoint-sublabel {
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 12px;
    text-transform: uppercase;
}

/* ---------- Obstacle (a checkpoint that drains time) ---------- */

.gauntlet-obstacle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gauntlet-obstacle-time {
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.8px;
    color: var(--warning);
    text-transform: uppercase;
    /* Fixed height + fixed margin below guarantees all dots land on the
       rail regardless of font metrics. 22 + 16 = 38px of space + 10px (half
       of the 20px dot) puts the obstacle dot center at y = 48, matching the
       endpoint dots (36px margin-top + 12px half of 24px dot = 48). */
    height: 22px;
    box-sizing: border-box;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.08);
    font-weight: 700;
    white-space: nowrap;
}

.gauntlet-obstacle-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--before-red);
    border: 3px solid #0c1018;
    box-shadow:
        0 0 0 2px var(--before-red),
        0 0 16px rgba(255, 100, 100, 0.5);
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
}

.gauntlet-obstacle-dot::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #0c1018;
}

.gauntlet-obstacle-card {
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 100, 100, 0.1) 0%,
        rgba(255, 100, 100, 0.03) 100%
    );
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 6px;
    padding: 14px 14px 14px;
    text-align: center;
    position: relative;
}

.gauntlet-obstacle-stat {
    font-size: 36px;
    font-weight: 800;
    color: var(--before-red);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.gauntlet-obstacle-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 20px;
}

.gauntlet-obstacle-desc {
    font-size: 13px;
    line-height: 18px;
    color: var(--text-secondary);
}

/* A small "stamp" in the corner of each obstacle card */
.gauntlet-obstacle-stamp {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 3px 7px;
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--before-red);
    border: 2px solid var(--before-red);
    border-radius: 3px;
    background: #0c1018;
    transform: rotate(5deg);
    text-transform: uppercase;
}

/* ---------- Underlayer: Structural pressure (1:50+ ratio) ---------- */

.gauntlet-pressure {
    margin: 0 24px 28px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 100, 100, 0.04) 0 10px,
            rgba(0, 0, 0, 0) 10px 22px
        ),
        linear-gradient(180deg, #0c1018 0%, #080b13 100%);
    border: 1px dashed rgba(255, 100, 100, 0.35);
    border-radius: 6px;
    position: relative;
}

.gauntlet-pressure-label {
    position: absolute;
    top: -8px;
    left: 18px;
    background: #080b13;
    padding: 0 10px;
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--before-red);
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.gauntlet-pressure-stat {
    font-size: 52px;
    font-weight: 800;
    color: var(--before-red);
    line-height: 1;
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: -2px;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.gauntlet-pressure-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px;
}

.gauntlet-pressure-body p {
    font-size: 14px;
    line-height: 21px;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .gauntlet-stations {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gauntlet-rail {
        /* Align the vertical rail with the dot centers on the left side
           of each station. Stations start at the timeline's padding-left
           (32px), and the endpoint dot is 24px wide → its center is at
           32 + 12 = 44px. translateX(-50%) centers the 3px rail on it. */
        left: 44px;
        transform: translateX(-50%);
        right: auto;
        top: 44px;
        bottom: 44px;
        width: 3px;
        height: auto;
        background: linear-gradient(
            180deg,
            #34f8b6 0%,
            #34f8b6 6%,
            #fbbf24 10%,
            #ff6464 50%,
            #ff6464 90%,
            #7d7d7d 96%,
            #7d7d7d 100%
        );
    }

    .gauntlet-rail::after {
        left: -6px;
        right: auto;
        top: auto;
        bottom: -8px;
        border-left: 7.5px solid transparent;
        border-right: 7.5px solid transparent;
        border-top: 12px solid #7d7d7d;
        border-bottom: none;
    }

    .gauntlet-endpoint-dot {
        margin-top: 0;
    }

    .gauntlet-obstacle {
        flex-direction: row;
        gap: 14px;
        align-items: flex-start;
    }

    .gauntlet-obstacle-dot {
        margin-bottom: 0;
        margin-top: 8px;
        flex-shrink: 0;
        /* Obstacle dot is 20px (vs the 24px endpoint dot). Nudging it 2px
           to the right puts its center on the same x as the endpoint dots
           so the rail passes cleanly through every station. */
        margin-left: 2px;
    }

    .gauntlet-obstacle-time {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
    }

    .gauntlet-obstacle-card {
        text-align: left;
        padding-top: 32px;
        flex: 1;
    }

    /* The "Hold / Assemble / Investigate" corner stamps and the time pills
       both want the top-right of the card on mobile. Drop the stamps so
       only the time pill (the more informative one) is shown. */
    .gauntlet-obstacle-stamp {
        display: none;
    }

    .gauntlet-endpoint {
        flex-direction: row;
        max-width: none;
        gap: 14px;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .gauntlet-timeline {
        padding: 30px 20px 28px;
    }

    .gauntlet-rail {
        /* Timeline padding-left shrinks to 20px at this breakpoint, so
           dot centers move to 20 + 12 = 32px. */
        left: 32px;
    }

    .gauntlet-header {
        padding: 14px 18px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gauntlet-status-block {
        text-align: left;
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .gauntlet-obstacle-stat {
        font-size: 28px;
    }

    .gauntlet-pressure {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gauntlet-pressure-stat {
        font-size: 40px;
        text-align: left;
        min-width: 0;
    }
}
