/* Single academic program page (ProgramController::show).
   The legacy-derived version used off-brand purple (#6f5091) panels, checkbox-
   looking list markers and a large empty purple square where the program image
   would go. Rebuilt with scoped .prg-* classes on the site's brand red; the
   staff grid reuses staff.css (.stf-*), so only page-specific rules live here. */

:root { --prg-brand: #E32D44; --prg-ink: #2c2c38; --prg-muted: #5A5A67; }

/* ---------- hero: program image behind a red gradient ---------- */
.prg-cover.has-img {
    background-image:
        linear-gradient(100deg, rgba(160, 20, 40, .94) 0%, rgba(227, 45, 68, .82) 50%, rgba(20, 18, 28, .5) 100%),
        var(--prg-cover-img) !important;
    background-size: cover !important;
    background-position: center !important;
}
.prg-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 15px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .17);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.prg-wrap {
    position: relative;
    z-index: 2;
    margin-top: -46px;
    padding-bottom: 90px;
}

/* ---------- key facts ---------- */
.prg-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.prg-fact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #ebebf0;
    border-top: 3px solid var(--prg-brand);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(30, 22, 40, .06);
}
.prg-fact__label {
    font-size: 12.5px;
    line-height: 1.4;
    letter-spacing: .2px;
    color: var(--prg-muted);
    text-transform: uppercase;
}
.prg-fact__value {
    font-size: 16px;
    line-height: 1.45;
    color: var(--prg-ink);
}

/* ---------- description ---------- */
.prg-card {
    background: #fff;
    border: 1px solid #ebebf0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 22, 40, .07);
    padding: 32px 36px;
}
.prg-prose {
    /* .art-prose caps at 820px; the card is the full grid width here */
    max-width: none;
}

/* ---------- school link ---------- */
.prg-school {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #ebebf0;
    border-left: 4px solid var(--prg-brand);
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 8px 20px rgba(30, 22, 40, .06);
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.prg-school:hover,
.prg-school:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(30, 22, 40, .12);
    border-color: rgba(227, 45, 68, .35);
    border-left-color: var(--prg-brand);
    text-decoration: none !important;
}
.prg-school__body { display: block; min-width: 0; }
.prg-school__label {
    display: block;
    margin-bottom: 5px;
    font-size: 12.5px;
    letter-spacing: .2px;
    color: var(--prg-muted);
    text-transform: uppercase;
}
.prg-school__name {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    color: var(--prg-ink);
}
.prg-school:hover .prg-school__name { color: var(--prg-brand); }
.prg-school__cta {
    flex: 0 0 auto;
    color: var(--prg-brand);
    font-size: 14.5px;
    white-space: nowrap;
}
.prg-school__cta span { display: inline-block; transition: transform .22s ease; }
.prg-school:hover .prg-school__cta span { transform: translateX(4px); }

/* ---------- blocks + documents ---------- */
.prg-block { margin-top: 46px; }

.prg-docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.prg-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ebebf0;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--prg-ink);
    box-shadow: 0 6px 16px rgba(30, 22, 40, .05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.prg-doc:hover,
.prg-doc:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(30, 22, 40, .11);
    border-color: rgba(227, 45, 68, .32);
}
.prg-doc__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(227, 45, 68, .08);
    color: var(--prg-brand);
}
.prg-doc__name { font-size: 14.5px; line-height: 1.45; }

@media (max-width: 767px) {
    .prg-wrap { margin-top: -30px; padding-bottom: 56px; }
    .prg-facts { grid-template-columns: 1fr; gap: 12px; }
    .prg-fact { padding: 18px 20px; border-radius: 12px; }
    .prg-card { padding: 22px 20px; border-radius: 12px; }
    .prg-school { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
    .prg-block { margin-top: 34px; }
    .prg-docs { grid-template-columns: 1fr; }
}
