/* Report library: existing North One Glass typography, surfaces and blue accents. */
.report-library-card__metadata { margin: 16px 0 0; display: grid; gap: 10px; font-size: .82rem; line-height: 1.55; }
.report-library-card__metadata dt { font-weight: 700; color: #294760; }
.report-library-card__metadata dd { margin: 2px 0 0; color: #40576a; overflow-wrap: anywhere; }
.test-reports-page {
    color: #10263d;
    background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 48%, #f6f9fc 100%);
}

.test-reports-page h1,
.test-reports-page h2,
.test-reports-page h3,
.report-hub-entry strong {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0;
}

.report-library-hero { padding: 26px 0 52px; }
.report-library-hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr); gap: 64px; align-items: center; padding-top: 24px; }
.report-library-hero__copy { min-width: 0; }
.report-library-parent { display: inline-block; margin-bottom: 26px; color: #55687e; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.report-library-hero__copy > .eyebrow { display: flex; }
.report-library-hero__copy h1 { margin: 18px 0 20px; font-size: clamp(2.6rem, 4.4vw, 4.8rem); line-height: 1.06; font-weight: 740; }
.report-library-hero__copy > p { max-width: 640px; margin: 0; color: #55687e; font-size: 1.08rem; line-height: 1.8; }
.report-library-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: 28px; }
.report-library-text-link { display: inline-flex; align-items: center; gap: 10px; color: #1478b1; font-size: 0.94rem; font-weight: 700; text-decoration: none; }
.report-library-text-link:hover { color: #10263d; }

.report-library-guide { position: relative; padding: 30px; border: 1px solid rgba(18, 45, 72, 0.1); border-radius: 26px; background: #ffffff; box-shadow: 0 20px 44px rgba(28, 55, 84, 0.06); }
.report-library-guide__icon { display: grid; place-items: center; width: 50px; height: 56px; margin-bottom: 24px; border: 1px solid #d8e8f1; border-radius: 10px; color: #1478b1; background: #f2f8fc; font-size: 1.5rem; }
.report-library-guide__icon svg,
.report-library-empty__icon svg,
.report-hub-entry__icon svg { display: block; width: 24px; height: 28px; }
.report-library-guide h2 { margin: 14px 0 22px; max-width: 260px; font-size: 1.55rem; line-height: 1.3; }
.report-library-guide dl { display: grid; gap: 16px; margin: 0; }
.report-library-guide dl > div { padding-top: 14px; border-top: 1px solid #e7edf3; }
.report-library-guide dt { margin-bottom: 4px; font-size: 0.84rem; font-weight: 800; }
.report-library-guide dd { margin: 0; color: #55687e; font-size: 0.84rem; line-height: 1.6; }

.report-library-section { padding: 40px 0 64px; border-top: 1px solid #e5edf3; scroll-margin-top: 110px; }
.report-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.report-library-heading h2 { margin: 12px 0 0; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.2; }
.report-library-count { flex-shrink: 0; margin-bottom: 4px; color: #55687e; font-size: 0.9rem; }
.report-library-sample-note { margin: 0 0 24px; padding: 13px 18px; border-left: 3px solid #84c6ff; background: #edf6fc; color: #425d76; font-size: 0.87rem; line-height: 1.65; }
.report-library-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 30px; padding: 20px; background: #ffffff; border: 1px solid #e0e9f0; border-radius: 16px; }
.report-library-filter > div:first-child { flex: 1 1 300px; }
.report-library-filter > div:nth-child(2) { flex: 0.7 1 240px; }
.report-library-filter label { display: block; margin-bottom: 8px; color: #425d76; font-size: 0.78rem; font-weight: 800; }
.report-library-filter input,
.report-library-filter select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #d5e0e9; border-radius: 8px; background: #fbfdff; color: #10263d; font: inherit; font-size: 0.9rem; }
.report-library-filter .button { min-height: 48px; }
.report-library-filter > .report-library-text-link { align-self: center; }
.report-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.report-library-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dfe8ef; border-radius: 16px; background: #ffffff; box-shadow: 0 10px 26px rgba(28, 55, 84, 0.045); }
.report-library-card__link { display: flex; flex: 1; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.report-library-card__cover { position: relative; display: grid; flex-shrink: 0; place-items: center; height: 260px; padding: 0 22px; overflow: hidden; }
.report-library-card__cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center top; border: 1px solid #e0e8ef; border-radius: 3px 3px 0 0; }
.report-library-file-icon { display: grid; place-items: center; width: 100%; height: 100%; color: #1478b1; font-size: 4rem; }
.report-library-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; min-height: 24px; margin-bottom: 10px; }
.report-library-card__sample { flex-shrink: 0; padding: 4px 7px; border-radius: 4px; background: #f0f4f7; color: #61788d; font-size: 0.62rem; font-weight: 700; }
.report-library-card:hover,
.report-library-card:focus-within { outline: 2px solid #1478b1; outline-offset: 4px; }
.report-library-card__body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 22px; }
.report-library-card__family { margin: 0; color: #1478b1; font-size: 0.7rem; font-weight: 700; }
.report-library-card h3 { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.4; }
.report-library-card__description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #55687e; font-size: 0.9rem; line-height: 1.75; }
.report-library-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; }
.report-library-card__footer > span:first-child { color: #6c7d8c; font-size: 0.73rem; }
.report-library-card__footer > span:last-child { color: #1478b1; font-size: 0.83rem; font-weight: 700; }
.report-library-card__footer--actions { display: grid; gap: 2px; padding-block: 12px; }
.report-library-card__actions { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.report-library-card__actions a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #11659b; font-size: 0.83rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.report-library-empty { display: grid; justify-items: center; gap: 18px; padding: 48px 24px; border: 1px solid #dfe8ef; border-radius: 24px; background: #ffffff; text-align: center; }
.report-library-empty__icon { color: #1478b1; font-size: 2rem; }
.report-library-empty h3 { margin: 0; font-size: 1.5rem; }
.report-library-empty p { max-width: 560px; margin: 0; color: #55687e; line-height: 1.8; }

.report-library-bottom { padding: 12px 0 64px; }
.report-library-bottom__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 56px; align-items: start; }
.report-library-editor-content { padding: 24px 0; color: #55687e; font-size: 0.98rem; line-height: 1.85; }
.report-library-editor-content h2 { margin: 0 0 18px; color: #10263d; font-size: 1.65rem; line-height: 1.3; }
.report-library-editor-content p { margin: 0 0 18px; }
.report-library-editor-content ul { padding-left: 20px; }
.report-library-editor-content a { color: #1478b1; text-underline-offset: 3px; }
.report-library-request { display: grid; justify-items: start; gap: 18px; padding: 30px; border: 1px solid #dbe8f1; border-radius: 24px; background: #eff7fc; }
.report-library-request h2 { margin: 0; font-size: 1.65rem; line-height: 1.3; }
.report-library-request p { margin: 0; color: #55687e; font-size: 0.95rem; line-height: 1.75; }

.report-hub-entry-wrap { padding: 0 0 24px; }
.report-hub-entry { display: grid; grid-template-columns: 62px minmax(0, 1fr) 32px; align-items: center; gap: 24px; padding: 26px 30px; border: 1px solid #d6e5f0; border-radius: 24px; background: #ffffff; box-shadow: 0 14px 36px rgba(28, 55, 84, 0.05); text-decoration: none; }
.report-hub-entry__icon { display: grid; place-items: center; width: 62px; height: 68px; border: 1px solid #d6e5f0; border-radius: 12px; background: #f2f8fc; color: #1478b1; font-size: 1.7rem; }
.report-hub-entry__copy { display: grid; gap: 10px; }
.report-hub-entry__copy strong { color: #10263d; font-size: 1.4rem; }
.report-hub-entry__copy > span { max-width: 800px; color: #55687e; font-size: 0.96rem; line-height: 1.65; }
.report-hub-entry__arrow { color: #1478b1; font-size: 1.8rem; }
.report-hub-entry:hover { border-color: #84c6ff; }

.report-preview { width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #d8e5ed; border-radius: 18px; background: #ffffff; color: #10263d; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25); }
.report-preview[open] { display: flex; flex-direction: column; }
.report-preview::backdrop { background: rgba(7, 24, 38, 0.76); }
.report-preview__header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #10263d; color: #ffffff; }
.report-preview__header span { font-size: 0.65rem; letter-spacing: 0.12em; color: #84c6ff; }
.report-preview__header h2 { margin: 8px 0 0; color: #ffffff; font-size: 1.12rem; line-height: 1.4; }
.report-preview__details { flex-shrink: 0; border-bottom: 1px solid #dfe8ef; background: #ffffff; }
.report-preview__details summary { padding: 12px 24px; color: #1478b1; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.report-preview__details > div { max-height: 180px; padding: 0 24px 16px; overflow: auto; }
.report-preview__details p { margin: 0 0 12px; color: #55687e; font-size: 0.85rem; line-height: 1.7; }
.report-preview__details dl { display: grid; gap: 10px; margin: 0; }
.report-preview__details dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
.report-preview__details dt { color: #6c7d8c; font-size: 0.76rem; }
.report-preview__details dd { margin: 0; color: #425d76; font-size: 0.8rem; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.report-preview__close { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #476078; border-radius: 50%; background: #1b374f; color: #ffffff; cursor: pointer; font: inherit; font-size: 1.65rem; line-height: 1; }
.report-preview__content { display: flex; justify-content: center; align-items: center; min-height: 0; height: min(680px, calc(100dvh - 220px)); overflow: auto; padding: 20px; background: #e9eff4; }
.report-preview__content img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; background: #ffffff; box-shadow: 0 8px 24px rgba(18, 45, 72, 0.13); }
.report-preview__content iframe { width: 100%; height: 100%; border: 0; background: #ffffff; }
.report-preview__footer { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; }
.report-preview__footer > span { color: #6c7d8c; font-size: 0.78rem; }
.test-reports-page :is(a, button, input, select):focus-visible,
.report-hub-entry:focus-visible { outline: 2px solid #1478b1; outline-offset: 4px; }

html[dir="rtl"] .report-library-sample-note { border-left: 0; border-right: 3px solid #84c6ff; }
html[dir="rtl"] .report-library-editor-content ul { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .report-library-text-link > [aria-hidden="true"],
html[dir="rtl"] .report-hub-entry__arrow { display: inline-block; transform: scaleX(-1); }
.report-preview__content { direction: ltr; }

@media (max-width: 1100px) {
    .report-library-hero__grid { gap: 32px; }
    .report-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-library-bottom__grid { gap: 32px; }
}

@media (max-width: 780px) {
    .report-library-hero { padding: 20px 0 32px; }
    .report-library-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 16px; }
    .report-library-parent { margin-bottom: 20px; }
    .report-library-hero__copy h1 { font-size: 2.8rem; }
    .report-library-hero__copy > p { font-size: 1rem; }
    .report-library-guide { padding: 24px; }
    .report-library-guide h2 { max-width: none; }
    .report-library-section { padding: 32px 0 40px; }
    .report-library-heading { flex-wrap: wrap; gap: 12px; }
    .report-library-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .report-library-card__cover { height: 260px; }
    .report-library-card__footer:not(.report-library-card__footer--actions) { justify-content: flex-start; gap: 20px; }
    .report-library-card__footer:not(.report-library-card__footer--actions) > span:first-child { order: 2; }
    .report-library-card__footer:not(.report-library-card__footer--actions) > span:last-child { order: 1; }
    .report-library-filter { padding: 16px; }
    .report-library-filter > div { flex-basis: 100%; }
    .report-library-bottom { padding-bottom: 40px; }
    .report-library-bottom__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .report-library-request { padding: 24px; }
    .report-hub-entry { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px; }
    .report-hub-entry__icon { width: 44px; height: 52px; font-size: 1.3rem; }
    .report-hub-entry__arrow { display: none; }
    .report-preview { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
    .report-preview__header { padding: 16px; gap: 12px; }
    .report-preview__header h2 { font-size: 0.98rem; }
    .report-preview__content { height: calc(100dvh - 240px); padding: 10px; }
    .report-preview__footer { flex-wrap: wrap; padding: 14px 16px; }
}
