.materials-page {
    background: #f4f8fa;
}

.materials-hero {
    background:
        radial-gradient(circle at 86% 20%, rgba(103, 199, 226, 0.18), transparent 23rem),
        linear-gradient(115deg, #072840, #0d4a6c);
    color: #fff;
}

.materials-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: 52px;
    align-items: center;
    min-height: 380px;
    padding-top: 58px;
    padding-bottom: 58px;
}

.materials-hero .eyebrow {
    color: #7ecbe4;
}

.materials-hero h1 {
    max-width: 780px;
    color: #fff;
    font-size: clamp(42px, 5.2vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.materials-hero p {
    max-width: 710px;
    margin-top: 20px;
    color: #c7dce7;
    font-size: 16px;
    line-height: 1.7;
}

.materials-hero.compact .materials-hero-layout {
    min-height: 310px;
}

.materials-stat-card {
    display: grid;
    min-height: 190px;
    padding: 28px;
    align-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 28px 70px rgba(0, 15, 27, 0.18);
}

.materials-stat-card span {
    color: #9bd8ea;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.materials-stat-card strong {
    margin-top: 10px;
    color: #fff;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.materials-stat-card small {
    margin-top: 8px;
    color: #c7dce7;
}

.materials-workspace {
    padding: 30px 0 72px;
}

.materials-filter {
    display: grid;
    gap: 16px;
    margin-top: -54px;
    padding: 20px;
    border: 1px solid #cfe1ea;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 44, 70, 0.1);
}

.materials-filter-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6eef3;
}

.materials-filter-head h2 {
    color: #102235;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.materials-filter-head p {
    margin-top: 4px;
    color: #647587;
    font-size: 13px;
    line-height: 1.55;
}

.materials-filter-step {
    display: inline-grid;
    width: 32px;
    height: 32px;
    margin-bottom: 9px;
    place-items: center;
    border-radius: 999px;
    background: #eaf6fb;
    color: #17658f;
    font-size: 11px;
    font-weight: 900;
}

.materials-filter label {
    display: grid;
    gap: 7px;
    color: #607386;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.materials-filter input,
.materials-filter select,
.materials-filter button,
.materials-reset {
    width: 100%;
    height: 46px;
    border: 1px solid #d8e4eb;
    border-radius: 13px;
    background: #fff;
    color: #10243a;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.materials-filter-head button {
    width: auto;
    min-width: 150px;
    padding: 0 20px;
}

.materials-filter input,
.materials-filter select {
    padding: 0 12px;
}

.materials-search {
    display: grid;
    gap: 7px;
}

.materials-category-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.materials-category-strip a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    max-width: 260px;
    padding: 10px 13px;
    border: 1px solid #dbe8ee;
    border-radius: 999px;
    background: #f7fbfc;
    color: #31485d;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.materials-category-strip a.is-active {
    border-color: #17658f;
    background: #e8f6fb;
    color: #0c4265;
}

.materials-category-strip small {
    color: #7f94a5;
    font-size: 10px;
}

.materials-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
}

.materials-filter button,
.materials-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #0c4265;
    background: #0c4265;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.materials-reset {
    border-color: #d8e4eb;
    background: #f5f9fb;
    color: #0c4265;
}

.materials-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
    color: #647587;
    font-size: 13px;
}

.materials-summary span {
    padding: 9px 12px;
    border: 1px solid #dae6ec;
    border-radius: 999px;
    background: #fff;
}

.materials-summary strong {
    color: #0c4265;
}

.materials-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.material-card,
.materials-error,
.materials-empty {
    border: 1px solid #d8e3e9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(16, 45, 65, 0.045);
}

.material-card {
    overflow: hidden;
}

.material-card > header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #e2ebf0;
}

.material-group {
    display: block;
    margin-bottom: 5px;
    color: #17658f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.material-card h2 {
    color: #102235;
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: -0.035em;
}

.material-card h2 a {
    color: inherit;
    text-decoration: none;
}

.material-card h2 a:hover {
    color: #17658f;
}

.material-card-subtitle {
    margin-top: 6px;
    color: #6d8091;
    font-size: 13px;
    line-height: 1.45;
}

.material-card-subtitle.compact {
    margin-top: 3px;
    color: #8798a7;
    font-size: 12px;
}

.material-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
    min-width: 230px;
}

.material-meta code,
.material-meta span {
    padding: 7px 10px;
    border: 1px solid #d9e5eb;
    border-radius: 999px;
    background: #f6fafb;
    color: #597082;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.material-meta code {
    color: #0c5278;
}

.material-range-table-wrap {
    overflow-x: auto;
}

.material-range-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.material-range-table th,
.material-range-table td {
    padding: 11px 18px;
    border-bottom: 1px solid #edf2f5;
    text-align: left;
    font-size: 13px;
}

.material-range-table th {
    background: #f8fbfc;
    color: #617487;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.material-range-table th span {
    color: #91a2b2;
    text-transform: none;
}

.copy-value {
    min-width: 72px;
    padding: 7px 11px;
    border: 1px solid #cfe1ea;
    border-radius: 10px;
    background: #edf6fb;
    color: #0c5278;
    font: inherit;
    font-weight: 850;
    cursor: copy;
}

.copy-value.is-copied {
    border-color: #4aa36f;
    background: #e8f7ed;
    color: #217346;
}

.materials-error,
.materials-empty {
    padding: 28px;
    color: #637587;
    text-align: center;
}

.materials-empty a,
.materials-back-link a {
    color: #0c5278;
    font-weight: 850;
    text-decoration: none;
}

.material-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 14px;
}

.material-detail-list {
    display: grid;
    gap: 0;
}

.material-detail-list div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    padding: 13px 20px;
    border-bottom: 1px solid #edf2f5;
}

.material-detail-list dt {
    color: #617487;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.material-detail-list dd {
    color: #102235;
    font-size: 13px;
}

.materials-back-link {
    margin-top: 18px;
}

.materials-error h2 {
    color: #102235;
}

@media (max-width: 980px) {
    .materials-hero-layout,
    .materials-list,
    .materials-filter-grid {
        grid-template-columns: 1fr;
    }

    .materials-filter {
        margin-top: -34px;
    }
}

@media (max-width: 640px) {
    .materials-hero-layout {
        gap: 26px;
        padding-top: 42px;
        padding-bottom: 52px;
    }

    .materials-hero h1 {
        font-size: 40px;
    }

    .materials-filter-head {
        flex-direction: column;
    }

    .materials-filter-head button {
        width: 100%;
    }

    .material-card > header {
        flex-direction: column;
    }

    .material-detail-grid {
        grid-template-columns: 1fr;
    }

    .material-detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .material-meta {
        justify-content: flex-start;
        min-width: 0;
    }

    .material-range-table th,
    .material-range-table td {
        padding: 11px 13px;
    }
}
