/* Landing page for /isp542/ — sits on top of assets/uitm.css.
   Only page-specific component classes live here; the whole brand layer is uitm.css. */

/* Anchor targets must clear the sticky nav when jumped to. */
#visualizers { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* ---------- visualizer cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 14px 0 4px;
}

.viz-card {
    display: grid;
    align-content: start;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(0, 47, 108, 0.14);
    background: linear-gradient(180deg, #fff, var(--blue-050));
    box-shadow: var(--shadow-1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.viz-card:hover,
.viz-card:focus-visible {
    border-color: var(--uitm-purple);
    box-shadow: var(--shadow-pop);
    transform: translateY(-2px);
    text-decoration: none;
}

.viz-img {
    display: block;
    background: var(--blue-100);
    /* exact intrinsic ratio of the capture (1326x878@1x) so object-fit never crops the legend row */
    aspect-ratio: 1326 / 828;
}

.viz-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.viz-body {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.viz-topics {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--uitm-purple), var(--uitm-blue));
    box-shadow: var(--shadow-1);
}

.tag-soft {
    color: var(--uitm-blue);
    background: var(--blue-100);
    box-shadow: none;
}

.viz-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--uitm-blue);
}

.viz-desc {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--uitm-cool-gray);
}

.viz-cta {
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--uitm-purple);
}

/* ---------- checklist ---------- */

.checklist {
    margin: 8px 0 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
}

.checklist li { margin-bottom: 7px; }

.checklist li::marker { color: var(--uitm-purple); }

/* ---------- responsive ---------- */

@media (max-width: 560px) {
    .cards { grid-template-columns: minmax(0, 1fr); }
}

@media print {
    .nav, .hero .pills, .sidebar { display: none !important; }
    .panel { box-shadow: none; border: 1px solid #ccc; }
    .hero { box-shadow: none; background: #fff; color: #000; }
    .hero h1, .hero p:not(.eyebrow) { color: #000; }
    body { background: #fff; }
}
