.guide-container {
    max-width: 900px;
    margin: 0 auto;
}
.guide-container > h1 {
    color: var(--mp-maroon);
    margin-bottom: 0.25rem;
}
.guide-subtitle {
    color: var(--mp-text-muted);
    margin-bottom: 2rem;
}

/* Category headers */
.cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem 0 1rem;
}
.cat-header h2 {
    color: var(--mp-maroon);
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    margin: 0;
    border: none;
    padding: 0;
}
.cat-header .line {
    flex: 1;
    height: 1px;
    background: var(--mp-tan);
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Cards */
.vg-card {
    background: #fff;
    border: 1px solid var(--mp-tan-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    scroll-margin-top: 70px;
}
.vg-card:hover {
    border-color: var(--mp-tan);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.vg-card.open {
    grid-column: 1 / -1;
    cursor: default;
    border-color: var(--mp-maroon);
}
.vg-card.open:hover {
    box-shadow: none;
}

/* Card summary (always visible) */
.vg-card-summary {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.vg-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: var(--mp-cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: var(--mp-maroon);
    font-weight: 600;
}
.vg-card-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: 0.25rem;
}
.vg-card-text p {
    font-size: 0.82rem;
    color: var(--mp-text-light);
    line-height: 1.4;
    margin: 0;
}
.vg-card-summary .toggle {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--mp-text-light);
    align-self: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.vg-card.open .vg-card-summary .toggle {
    transform: rotate(180deg);
}

/* Featured card (MP-Triage) */
.vg-card.featured {
    border-color: var(--mp-tan);
    background: linear-gradient(135deg, #fff 60%, #faf5eb);
}
.vg-card.featured .vg-card-icon {
    background: var(--mp-maroon);
    color: #fff;
}

/* Full-width card */
.vg-card.full-width {
    grid-column: 1 / -1;
}

/* Card detail (hidden until open) */
.vg-card-detail {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #eee;
}
.vg-card.open .vg-card-detail {
    display: block;
}
.vg-card-detail h5 {
    color: var(--mp-text-muted);
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.vg-card-detail p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--mp-text);
}
.vg-card-detail img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0.5rem 0;
}
.vg-card-detail .ref {
    font-size: 0.8rem;
    color: var(--mp-text-light);
}
.vg-card-detail table {
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}
.vg-card-detail th,
.vg-card-detail td {
    border: 1px solid var(--mp-tan-light);
    padding: 0.35rem 0.6rem;
    text-align: left;
}
.vg-card-detail th {
    background: var(--mp-cream);
}
.vg-card-detail ul {
    margin: 0.5rem 0 0.75rem 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}
.vg-card-detail pre {
    background: #f8f8f8;
    padding: 0.75em;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.85rem;
}
.vg-card-detail .alert {
    margin: 1rem 0;
}
.cutoff-table td, .cutoff-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
}
.cutoff-table .color-good { background-color: var(--mp-status-good) !important; }
.cutoff-table .color-caution { background-color: var(--mp-status-caution) !important; }
.cutoff-table .color-warning { background-color: var(--mp-status-bad) !important; }
