.matrix-hero {
    padding: 72px 0 64px;
    background: #f3f7f4;
    border-bottom: 1px solid var(--line);
}

.matrix-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 72px;
    align-items: center;
}

.matrix-hero h1 {
    max-width: 820px;
    margin-bottom: 20px;
    color: var(--forest);
    font-size: clamp(2.55rem, 4.2vw, 4rem);
    line-height: 1.02;
}

.matrix-hero .hero-lead { max-width: 760px; }
.matrix-hero .button-group { margin-top: 30px; }

.matrix-key {
    padding: 28px;
    background: var(--white);
    border: 1px solid #cbd7cf;
    border-top: 5px solid #4b9dac;
}

.matrix-key h2 { margin-bottom: 18px; color: var(--forest); font-size: 1.25rem; }
.matrix-key ul { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.matrix-key p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.matrix-reviewed { margin-bottom: 8px !important; color: var(--leaf-dark) !important; font-weight: 750; }

.matrix-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.matrix-status-included { color: #0e613a; background: #e5f4e9; border-color: #b7dcc2; }
.matrix-status-conditional { color: #18536a; background: #e4f3f7; border-color: #b8dbe5; }
.matrix-status-planned { color: #72520a; background: #fff3cf; border-color: #ead38a; }
.matrix-status-unavailable { color: #66444a; background: #f4e9eb; border-color: #dec7cb; }

.matrix-jump { position: sticky; z-index: 20; top: 72px; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
.matrix-jump .site-shell { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 14px; }
.matrix-jump a { flex: 0 0 auto; color: #43584c; font-size: 0.84rem; font-weight: 750; text-decoration: none; }
.matrix-jump a:hover { color: var(--leaf); text-decoration: underline; text-underline-offset: 4px; }

.matrix-section { padding: 76px 0; scroll-margin-top: 130px; }
.matrix-section-muted { background: var(--surface); }
.matrix-section-grid { display: grid; grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr); gap: 58px; align-items: start; }
.matrix-section header { position: sticky; top: 142px; }
.matrix-section header h2 { margin-bottom: 12px; color: var(--forest); font-size: 2rem; }
.matrix-section header p:last-child { color: var(--muted); }
.matrix-section-number { margin-bottom: 10px; color: var(--leaf); font-size: 0.82rem; font-weight: 850; }

.matrix-table { border-top: 2px solid var(--forest); }
.matrix-row { display: grid; grid-template-columns: minmax(190px, 0.78fr) minmax(165px, 0.45fr) minmax(280px, 1fr); gap: 24px; align-items: start; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.matrix-row-head { padding-block: 12px; color: var(--muted); font-size: 0.75rem; font-weight: 850; text-transform: uppercase; }
.matrix-row strong { display: block; color: var(--forest); line-height: 1.35; }
.matrix-row p { margin: 0; color: #4f6157; font-size: 0.95rem; }
.matrix-row a { display: inline-block; margin-top: 7px; color: var(--leaf-dark); font-size: 0.82rem; font-weight: 750; text-underline-offset: 3px; }
.matrix-notes p { color: var(--muted); }

@media (max-width: 980px) {
    .matrix-hero-grid, .matrix-section-grid { grid-template-columns: 1fr; gap: 36px; }
    .matrix-section header { position: static; max-width: 650px; }
    .matrix-jump { top: 66px; }
}

@media (max-width: 700px) {
    .matrix-hero { padding: 50px 0; }
    .matrix-hero h1 { font-size: 2.55rem; }
    .matrix-section { padding: 58px 0; }
    .matrix-jump .site-shell { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .matrix-row-head { display: none; }
    .matrix-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
    .matrix-row [role="cell"]::before { display: block; margin-bottom: 5px; color: var(--muted); content: attr(data-label); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
}
