/*
 * CUANTUM SCUT PILON — COMPONENTS V1
 * Visual components only.
 * No page positioning rules. No JavaScript behavior.
 */

.cs-shell {
    padding: 16px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-lg);
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.96),
            rgba(15, 23, 42, 0.98)
        );
    box-shadow: var(--cs-shadow-panel);
}

.cs-header {
    min-height: 58px;
    padding: 9px 12px;
    border: 1px solid var(--cs-border-soft);
    border-radius: var(--cs-radius-md);
    background: var(--cs-surface-panel);
}

.cs-brand-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1.5px solid rgba(255, 235, 204, 0.82);
    border-radius: 50%;
    color: var(--cs-title);
    background: #7a1c28;
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.42);
    font-size: 27px;
    line-height: 1;
}

.cs-brand-name {
    overflow: hidden;
    color: var(--cs-title);
    font-size: clamp(1.05rem, 3vw, 1.34rem);
    font-weight: 800;
    letter-spacing: 0.6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-brand-ai {
    color: var(--cs-accent-strong);
    font-size: 0.62em;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.cs-hero {
    padding: 20px;
    border: 1px solid var(--cs-border-soft);
    border-radius: var(--cs-radius-md);
    background:
        linear-gradient(
            90deg,
            rgba(20, 50, 37, 0.84),
            rgba(26, 27, 32, 0.96) 50%,
            rgba(76, 29, 29, 0.74)
        );
}

.cs-hero h1,
.cs-section-title {
    margin: 0;
    color: var(--cs-title);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.cs-hero h1 {
    font-size: clamp(1.45rem, 4vw, 2.05rem);
    line-height: 1.18;
}

.cs-hero p {
    margin: 12px 0 0;
    color: var(--cs-text);
}

.cs-disclaimer {
    color: var(--cs-text-muted) !important;
    font-size: 0.92rem;
}

.cs-section-title {
    font-size: clamp(1.12rem, 3vw, 1.42rem);
}

.cs-situation-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid var(--cs-border-soft);
    border-radius: var(--cs-radius-md);
    color: var(--cs-text-strong);
    background:
        linear-gradient(
            145deg,
            rgba(71, 85, 105, 0.92),
            rgba(30, 41, 59, 0.98)
        );
    box-shadow: var(--cs-shadow-button);
    font-weight: 700;
    text-align: left;
    transition:
        border-color var(--cs-transition),
        background var(--cs-transition),
        box-shadow var(--cs-transition),
        transform var(--cs-transition);
}

.cs-situation-button:hover {
    border-color: var(--cs-accent-strong);
    background:
        linear-gradient(
            145deg,
            rgba(71, 85, 105, 0.98),
            rgba(30, 41, 59, 1)
        );
    box-shadow:
        0 0 10px rgba(245, 158, 11, 0.24),
        0 7px 18px rgba(0, 0, 0, 0.34);
    transform: translateY(-1px);
}

.cs-situation-button[aria-expanded="true"] {
    border-color: var(--cs-accent-strong);
    color: var(--cs-title);
}

.cs-situation-button-icon {
    flex: 0 0 auto;
    margin-left: 12px;
    color: var(--cs-accent-strong);
    font-size: 1.08rem;
    transition: transform var(--cs-transition);
}

.cs-situation-button[aria-expanded="true"]
.cs-situation-button-icon {
    transform: rotate(45deg);
}

.cs-accordion-panel {
    padding: 18px;
    border: 1px solid var(--cs-border-cool);
    border-radius: var(--cs-radius-md);
    color: var(--cs-text);
    background:
        linear-gradient(
            145deg,
            rgba(51, 65, 85, 0.96),
            rgba(30, 41, 59, 0.98)
        );
    box-shadow:
        inset 0 0 22px rgba(56, 189, 248, 0.06),
        0 8px 22px rgba(0, 0, 0, 0.24);
}

.cs-accordion-panel h3 {
    margin: 0;
    color: var(--cs-title);
    font-size: 1.04rem;
}

.cs-accordion-panel p {
    margin: 6px 0 16px;
}

.cs-accordion-panel p:last-child {
    margin-bottom: 0;
}

.cs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid var(--cs-border);
    border-radius: 9px;
    color: var(--cs-title);
    background:
        linear-gradient(
            145deg,
            rgba(51, 65, 85, 0.98),
            rgba(15, 23, 42, 0.98)
        );
    box-shadow: var(--cs-shadow-button);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition:
        border-color var(--cs-transition),
        background var(--cs-transition),
        box-shadow var(--cs-transition);
}

.cs-button:hover {
    border-color: var(--cs-accent-strong);
    color: #fff7db;
    background:
        linear-gradient(
            145deg,
            rgba(71, 85, 105, 0.98),
            rgba(30, 41, 59, 0.98)
        );
    box-shadow:
        0 0 10px rgba(245, 158, 11, 0.24),
        0 7px 18px rgba(0, 0, 0, 0.34);
}

.cs-footer {
    color: var(--cs-text-muted);
    font-size: 0.84rem;
}

.cs-footer a {
    text-decoration: none;
}

.cs-footer a:hover {
    color: var(--cs-title);
    text-decoration: underline;
}

@media (max-width: 700px) {
    .cs-shell {
        padding: 12px;
        border-radius: var(--cs-radius-md);
    }

    .cs-header,
    .cs-hero,
    .cs-accordion-panel {
        padding: 14px;
    }

    .cs-brand-emblem {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
}

/*
 * CUANTUM SCUT PILON — DETAIL VIEW V1
 * Situation list and selected explanation are separate visual states.
 */
.cs-situation-button[hidden] {
    display: none;
}

.cs-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cs-border-soft);
}

.cs-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.cs-button-secondary {
    border-color: var(--cs-border-cool);
    color: var(--cs-text-strong);
}

@media (max-width: 700px) {
    .cs-panel-actions {
        flex-direction: column;
    }

    .cs-panel-actions .cs-button {
        width: 100%;
    }
}

/*
 * CUANTUM SCUT PILON — VISUAL REFINEMENT V2
 * Approved local visual calibration after first browser review.
 */
.cs-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.cs-header .cs-brand {
    grid-column: 2;
}

.cs-header > .cs-footer {
    grid-column: 3;
    justify-self: end;
}

.cs-brand-emblem {
    position: relative;
    width: 64px;
    height: 64px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0;
}

.cs-emblem-orbit {
    display: block;
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.42));
}

.cs-emblem-owl {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    font-size: 31px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.cs-brand-name {
    color: #fff7db;
    font-weight: 700;
}

.cs-hero h1,
.cs-section-title {
    color: #fff7db;
    font-weight: 700;
}

.cs-hero h1 {
    font-size: clamp(1.22rem, 3.1vw, 1.64rem);
    line-height: 1.24;
}

@media (max-width: 700px) {
    .cs-header {
        display: flex;
    }

    .cs-header .cs-brand,
    .cs-header > .cs-footer {
        display: inline-flex;
    }

    .cs-header > .cs-footer {
        align-self: flex-start;
    }
}

/*
 * CUANTUM SCUT PILON — FINAL VISUAL CALIBRATION V3
 * Simplified owl emblem and quieter hero question.
 */
.cs-brand-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 235, 204, 0.82);
    border-radius: 50%;
    background: #7a1c28;
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.42);
    font-size: 28px;
    line-height: 1;
}

.cs-hero h1 {
    color: var(--cs-text-muted);
    font-size: clamp(1.05rem, 2.4vw, 1.28rem);
    font-weight: 650;
    line-height: 1.28;
}

/*
 * CUANTUM SCUT PILON — HERO TWO-LINE HIERARCHY V4
 * User question first; CUANTUM guidance second.
 */
.cs-hero-question,
.cs-hero-guidance {
    display: block;
    text-align: center;
}

.cs-hero-question {
    color: #fff7db;
    font-size: clamp(1.17rem, 2.6vw, 1.40rem);
    font-weight: 700;
    line-height: 1.20;
}

.cs-hero-guidance {
    margin-top: 5px;
    color: var(--cs-text-muted);
    font-size: clamp(0.98rem, 2.1vw, 1.12rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.30;
}

/*
 * CUANTUM SCUT PILON — CENTERING AND QUESTION MARK V5
 * Full-width hero title; original paragraph measure is preserved.
 */
.cs-hero-copy {
    max-width: none;
}

.cs-hero-copy > p {
    max-width: 860px;
}

.cs-question-mark {
    display: inline-block;
    margin-left: 0.08em;
}

/*
 * CUANTUM SCUT PILON — LIMIT NOTE COLOR V6
 * The permanent limitation shares the program-description text tone.
 */
.cs-limit-note {
    color: var(--cs-text) !important;
}

/*
 * CUANTUM SCUT PILON — LIMIT NOTE TYPOGRAPHY V7
 * Permanent limitation matches the primary program-description text.
 */
.cs-limit-note {
    font-size: 1rem;
    font-weight: 400;
}
