.admit-card-show {
    --admit-primary: #2563eb;
    --admit-primary-dark: #1d4ed8;
    --admit-success: #16a34a;
    --admit-warning: #f59e0b;
    --admit-ink: #0f172a;
    --admit-muted: #64748b;
    --admit-border: #e2e8f0;
    --admit-soft: #f8fafc;
}

/* The admit-card hero intentionally uses the shared post-hero styling
   (same as results/show.blade.php) so its premium gradient background and
   light typography come from frontend-post-system.css. No per-page overrides
   are applied here, which keeps the hero identical to the results page. */

.admit-step-grid,
.admit-check-grid,
.admit-list-grid {
    display: grid;
    gap: 14px;
}

.admit-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admit-step-grid--three,
.admit-check-grid,
.admit-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admit-step-card,
.admit-list-card,
.admit-callout,
.admit-login-box,
.admit-sidebar-notice {
    background: #ffffff;
    border: 1px solid var(--admit-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.admit-step-card {
    position: relative;
    padding: 18px 18px 18px 68px;
    min-height: 126px;
}

.admit-step-card__number {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--admit-primary);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.admit-step-card h3,
.admit-list-card h3,
.admit-callout h3,
.admit-login-box h3,
.admit-sidebar-notice h3 {
    margin: 0 0 8px;
    color: var(--admit-ink);
    font-size: 1rem;
    line-height: 1.35;
}

.admit-step-card p,
.admit-list-card p,
.admit-callout p,
.admit-login-box p,
.admit-sidebar-notice p {
    margin: 0;
    color: var(--admit-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.admit-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 54px;
    padding: 14px;
    border: 1px solid var(--admit-border);
    border-radius: 12px;
    background: var(--admit-soft);
    color: #334155;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.45;
}

.admit-check-item i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: var(--admit-success);
    font-size: 0.78rem;
    margin-top: 1px;
}

.admit-list-card {
    padding: 18px;
}

.admit-list-card__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--admit-primary);
    font-size: 1.05rem;
}

.admit-instruction-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admit-instruction-list li {
    position: relative;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--admit-border);
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.6;
}

.admit-instruction-list li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--admit-primary);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.admit-callout {
    padding: 18px;
    border-left: 4px solid var(--admit-warning);
    background: #fffbeb;
}

.admit-callout p + p {
    margin-top: 8px;
}

.admit-login-box {
    padding: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.admit-login-list,
.admit-help-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.admit-login-list li,
.admit-help-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.5;
}

.admit-login-list i,
.admit-help-list i {
    color: var(--admit-primary);
    margin-top: 3px;
}

.admit-sidebar-notice {
    padding: 18px;
    margin-bottom: 16px;
}

.admit-sidebar-notice h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admit-sidebar-notice h3 i {
    color: var(--admit-primary);
}

.post-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--admit-border);
    border-radius: 12px;
    font-size: 0.92rem;
}

.post-table th,
.post-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--admit-border);
    text-align: left;
    vertical-align: top;
}

.post-table th {
    background: #f8fafc;
    color: var(--admit-ink);
    font-weight: 800;
}

.post-table td {
    color: #334155;
}

.post-table tr:last-child th,
.post-table tr:last-child td {
    border-bottom: 0;
}

.admit-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--admit-border);
    box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.admit-mobile-cta__text {
    min-width: 0;
}

.admit-mobile-cta__label {
    display: block;
    color: var(--admit-ink);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
}

.admit-mobile-cta__hint {
    display: block;
    margin-top: 2px;
    color: var(--admit-muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

.admit-mobile-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 11px;
    background: var(--admit-primary);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.admit-mobile-cta__button:hover {
    background: var(--admit-primary-dark);
    color: #ffffff;
}

body.has-admit-mobile-cta {
    padding-bottom: 82px;
}

@media (max-width: 991.98px) {
    .admit-step-grid,
    .admit-step-grid--three,
    .admit-check-grid,
    .admit-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admit-step-grid,
    .admit-step-grid--three,
    .admit-check-grid,
    .admit-list-grid {
        grid-template-columns: 1fr;
    }

    .admit-step-card {
        min-height: 0;
        padding: 16px 16px 16px 62px;
    }

    .admit-step-card__number {
        top: 16px;
        left: 16px;
    }

    .post-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .admit-mobile-cta {
        display: flex;
    }
}

@media (min-width: 768px) {
    body.has-admit-mobile-cta {
        padding-bottom: 0;
    }
}
