/* Foresight Hub Design System — shared page primitives (DX-2)
 * Opt in with app-shell classes. This file intentionally does not reset or
 * restyle legacy page selectors.
 */
.app-shell {
    min-height: 100vh;
    background: var(--fsp-color-canvas);
    color: var(--fsp-color-ink);
    font-family: var(--fsp-font-sans);
    line-height: var(--fsp-leading-normal);
}

.app-shell__container {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
    padding: var(--fsp-space-8) 0 var(--fsp-space-12);
}

.app-shell__hero {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--fsp-radius-xl);
    background: linear-gradient(135deg, var(--fsp-color-evergreen-950), var(--fsp-color-evergreen-800));
    box-shadow: var(--fsp-shadow-lg);
    color: #fff;
}

.app-shell__eyebrow {
    margin: 0 0 var(--fsp-space-2);
    color: var(--fsp-color-gold-300);
    font-size: var(--fsp-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-shell__title {
    margin: 0;
    font-size: var(--fsp-text-3xl);
    line-height: var(--fsp-leading-tight);
}

.app-shell__lead {
    max-width: 48rem;
    margin: var(--fsp-space-3) 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: var(--fsp-leading-relaxed);
}

.app-shell__section { margin-top: var(--fsp-space-10); }
.app-shell__section-title { margin: 0; color: var(--fsp-color-evergreen-900); font-size: var(--fsp-text-2xl); }
.app-shell__section-lead { margin: var(--fsp-space-2) 0 0; color: var(--fsp-color-muted); }

.app-grid { display: grid; gap: var(--fsp-space-5); }
.app-grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.app-card {
    padding: var(--fsp-space-6);
    background: var(--fsp-color-surface);
    border: 1px solid var(--fsp-color-border);
    border-radius: var(--fsp-radius-lg);
    box-shadow: var(--fsp-shadow-sm);
}

.app-card__title { margin: 0; color: var(--fsp-color-evergreen-900); font-size: var(--fsp-text-lg); }
.app-card__body { margin: var(--fsp-space-2) 0 0; color: var(--fsp-color-text); font-size: var(--fsp-text-sm); }

.app-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: var(--fsp-space-2);
    padding: 0.625rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--fsp-radius-md);
    background: var(--fsp-color-gold-600);
    color: var(--fsp-color-evergreen-950);
    font: 700 var(--fsp-text-sm)/1 var(--fsp-font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--fsp-transition-fast), transform var(--fsp-transition-fast), box-shadow var(--fsp-transition-fast);
}

.app-button:hover { background: var(--fsp-color-gold-500); transform: translateY(-1px); }
.app-button--secondary { background: var(--fsp-color-evergreen-900); color: #fff; }
.app-button--secondary:hover { background: var(--fsp-color-evergreen-800); }
.app-button--quiet { background: transparent; border-color: var(--fsp-color-border); color: var(--fsp-color-evergreen-900); }
.app-button--quiet:hover { background: var(--fsp-color-surface-muted); }

.app-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: var(--fsp-text-xs);
    font-weight: 700;
}
.app-status--success { background: var(--fsp-color-success-soft); color: var(--fsp-color-success); }
.app-status--warning { background: var(--fsp-color-warning-soft); color: var(--fsp-color-warning); }
.app-status--danger { background: var(--fsp-color-danger-soft); color: var(--fsp-color-danger); }
.app-status--info { background: var(--fsp-color-info-soft); color: var(--fsp-color-info); }

.app-shell :is(a, button, input, select, textarea):focus-visible {
    outline: none;
    box-shadow: var(--fsp-focus-ring);
}

@media (max-width: 767px) {
    .app-shell__container { width: min(100% - 1.25rem, 1200px); padding-top: var(--fsp-space-5); }
    .app-shell__hero { border-radius: var(--fsp-radius-lg); }
    .app-button { min-height: 2.75rem; }
}
