/* Download catalogue: deliberately scoped to .dl-page. */
.dl-page {
    --dl-ink: var(--mtq-text, #1d2d38);
    --dl-muted: var(--mtq-text-muted, #4b606e);
    --dl-blue: var(--mtq-primary, #086c9c);
    --dl-blue-dark: var(--mtq-primary-strong, #054d72);
    --dl-border: var(--mtq-border, #bdcdd6);
    --dl-white: var(--mtq-surface, #fff);
    max-width: 1300px;
    margin: 0 auto 50px;
    color: var(--dl-ink);
    font-size: 16px;
    line-height: 1.5;
}
.dl-page .fa { font-family: FontAwesome; }
.dl-page-header {
    padding: 28px 32px;
    margin-bottom: 26px;
    border: 1px solid #c5d9e4;
    border-radius: 8px;
    background: linear-gradient(118deg, #f0f6fa 0%, #dbeaf3 100%);
}
.dl-page .dl-eyebrow {
    margin: 0 0 7px;
    color: var(--dl-blue-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.dl-page-header h1 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--dl-ink);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.2;
}
.dl-page .dl-intro {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--dl-muted);
    font-size: 15px;
}
.dl-layout {
    display: grid;
    grid-template-columns: minmax(220px, 265px) minmax(0, 1fr);
    align-items: start;
    gap: 25px;
}
.dl-sidebar {
    padding: 15px 10px;
    border: 1px solid var(--dl-border);
    border-radius: 7px;
    background: var(--dl-white);
}
.dl-sidebar-title {
    padding: 7px 13px 13px;
    color: var(--dl-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.dl-category-nav { display: grid; gap: 3px; }
#body-container .dl-page .dl-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    color: var(--dl-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}
.dl-category-link span:first-child { min-width: 0; }
.dl-category-link .fa { width: 18px; margin-right: 4px; color: var(--dl-muted); }
#body-container .dl-page .dl-category-link:hover,
#body-container .dl-page .dl-category-link:focus-visible { background: #eaf4fa; color: var(--dl-blue-dark); }
#body-container .dl-page .dl-category-link.is-active { background: var(--dl-blue-dark); color: #fff; font-weight: 700; }
.dl-page .dl-category-link.is-active .fa { color: #fff; }
.dl-category-count {
    flex: 0 0 auto;
    min-width: 26px;
    padding: 2px 7px;
    border-radius: 8px;
    background: #eef2f5;
    color: #405867;
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.dl-category-link.is-active .dl-category-count { background: rgba(255, 255, 255, .2); color: #fff; }
.dl-category-divider { margin: 8px 12px; border-top: 1px solid var(--dl-border); }
.dl-main { min-width: 0; }
.dl-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(175px, 205px);
    align-items: end;
    gap: 16px;
    padding: 19px 22px;
    border: 1px solid var(--dl-border);
    border-radius: 7px;
    background: var(--dl-white);
}
.dl-page .dl-filter-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--dl-ink);
    font-size: 13px;
    font-weight: 700;
}
.dl-search-line { display: flex; gap: 8px; }
.dl-page .dl-filter-form input,
.dl-page .dl-filter-form select {
    min-width: 0;
    height: 44px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--dl-border);
    border-radius: 7px;
    color: var(--dl-ink);
    background: #fff;
    box-shadow: none;
    font-size: 14px;
}
.dl-page .dl-filter-form input:focus,
.dl-page .dl-filter-form select:focus { outline: 2px solid var(--dl-blue); outline-offset: 1px; }
.dl-page .dl-filter-form input[type=search] { flex: 1 1 auto; }
.dl-page .dl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#body-container .dl-page a { text-shadow: none; }
#body-container .dl-page .dl-button-primary,
.dl-page button.dl-button-primary {
    background: var(--mtq-primary, #1266a7);
    border-color: var(--mtq-primary-strong, #094d82);
    color: var(--mtq-on-primary, #fff);
    text-decoration: none;
}
#body-container .dl-page .dl-button-primary:hover,
.dl-page button.dl-button-primary:hover {
    background: var(--mtq-primary-strong, #094d82);
    border-color: var(--mtq-primary-strong, #094d82);
    color: var(--mtq-on-primary, #fff);
}
#body-container .dl-page .dl-button-outline { border-color: #9ec3d7; background: #f0f8fc; color: var(--dl-blue-dark); }
#body-container .dl-page .dl-button-outline:hover { background: #e1f1f8; }
#body-container .dl-page a:focus-visible,
.dl-page button:focus-visible { outline: 2px solid var(--dl-blue); outline-offset: 3px; }
.dl-results-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 26px 0 15px; }
.dl-page .dl-results-head h2 { margin: 0; padding: 0; border: 0; color: var(--dl-ink); font-size: 23px; }
.dl-page .dl-results-head p { margin: 3px 0 0; color: var(--dl-muted); font-size: 13px; }
#body-container .dl-page .dl-reset { border: 0; color: var(--dl-blue-dark); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dl-reset .fa { margin-right: 5px; }
.dl-items { display: grid; gap: 14px; }
.dl-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: start;
    gap: 19px;
    padding: 23px 24px;
    border: 1px solid #c9d8e2;
    border-radius: 8px;
    background: var(--dl-white);
    box-shadow: 0 3px 14px rgba(23, 55, 76, .045);
    transition: border-color .17s ease, box-shadow .17s ease;
}
.dl-card:hover { border-color: #99bfd1; box-shadow: 0 5px 20px rgba(23, 55, 76, .085); }
/* A recommendation is an editorial choice, not merely a pinned list item. */
.dl-card-featured {
    position: relative;
    border: 2px solid var(--dl-blue);
    border-left-width: 6px;
    padding: 22px 23px 22px 19px;
    background: linear-gradient(105deg, #eaf6fc 0%, #f8fcfe 46%, var(--dl-white) 100%);
    box-shadow: 0 6px 24px rgba(8, 108, 156, .12);
}
.dl-card-featured:hover {
    border-color: var(--dl-blue-dark);
    box-shadow: 0 9px 28px rgba(8, 108, 156, .18);
}
.dl-card-featured .dl-card-icon {
    border-color: #b5d8e9;
    background: #d9edf8;
}

.dl-card-icon {
    display: grid;
    place-items: center;
    width: 65px;
    height: 72px;
    border: 1px solid #c8dfea;
    border-radius: 7px;
    background: linear-gradient(150deg, #eef7fc 0%, #dceef7 100%);
    color: var(--dl-blue-dark);
    font-size: 30px;
}
.dl-card-content { min-width: 0; }
.dl-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.dl-filetype, .dl-access-badge, .dl-featured {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}
.dl-filetype { background: #e5f0f8; color: #21516e; text-transform: uppercase; letter-spacing: .03em; }
.dl-access-badge { background: #edf2f8; color: #3d5d73; }
.dl-access-locked { background: #fff2df; color: #7a4c10; }
.dl-featured {
    background: var(--dl-blue-dark);
    color: #fff;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .015em;
}
.dl-featured .fa { color: #fff; }

.dl-page .dl-card h3 { margin: 0; color: var(--dl-ink); font-size: 19px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
#body-container .dl-page .dl-card h3 a { border: 0; color: var(--dl-blue-dark); font-weight: 700; text-decoration: none; }
#body-container .dl-page .dl-card h3 a:hover { color: #076b9b; text-decoration: underline; }
.dl-card-category { margin-top: 4px; color: #577080; font-size: 12px; font-weight: 600; }
.dl-page .dl-card-description { margin: 12px 0 0; color: #374d5c; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.dl-page .dl-card-description-rich p { margin: 0 0 6px; color: inherit; }
.dl-page .dl-card-description-rich p:last-child { margin-bottom: 0; }
.dl-page .dl-card-description-rich br { line-height: 1.7; }
.dl-page .dl-card-description-rich ul, .dl-page .dl-card-description-rich ol { margin: 5px 0; padding-left: 22px; }
#body-container .dl-page .dl-card-description-rich a {
    color: var(--dl-blue-dark);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}
#body-container .dl-page .dl-card-description-rich a:hover { color: var(--dl-blue); }
#body-container .dl-page .dl-card-description-rich a:focus-visible { outline: 2px solid var(--dl-blue); outline-offset: 2px; }
.dl-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e6edf1;
    color: var(--dl-muted);
    font-size: 12px;
    line-height: 1.3;
}
.dl-card-meta .fa { margin-right: 6px; color: #63869a; }
.dl-card-actions { display: flex; justify-content: flex-end; align-items: flex-start; padding-top: 34px; }
.dl-card-actions .dl-button { min-width: 144px; }
.dl-page .dl-missing { margin: 10px 0 0; color: #a93636; font-size: 13px; font-weight: 700; }
.dl-page .dl-details { margin-top: 9px; }
.dl-page .dl-details summary { color: var(--dl-blue-dark); cursor: pointer; font-size: 13px; font-weight: 700; }
.dl-page .dl-details summary:hover { text-decoration: underline; }
.dl-details-content { padding: 11px 0 4px; color: var(--dl-ink); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.dl-details-content p, .dl-details-content ul, .dl-details-content ol { margin: 0 0 9px; color: inherit; }
.dl-details-content ul, .dl-details-content ol { padding-left: 23px; }
.dl-empty { padding: 50px 25px; border: 1px dashed var(--dl-border); border-radius: 7px; background: var(--dl-white); text-align: center; }
.dl-empty > .fa { display: block; margin-bottom: 15px; color: #7892a0; font-size: 35px; }
.dl-page .dl-empty h3 { margin-bottom: 8px; font-size: 20px; }
.dl-page .dl-empty p { margin-bottom: 18px; color: var(--dl-muted); }
.dl-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 0 12px; color: var(--dl-muted); font-size: 13px; }
.dl-pagination-links { display: flex; align-items: center; gap: 12px; }
#body-container .dl-page .dl-pagination-links a { padding: 8px 11px; border: 1px solid var(--dl-border); border-radius: 7px; color: var(--dl-blue-dark); text-decoration: none; }
#body-container .dl-page .dl-pagination-links a:hover { background: #eaf4f9; }
@media (min-width: 1020px) {
    .dl-sidebar { position: sticky; top: 80px; max-height: calc(100vh - 90px); overflow-y: auto; }
}
@media (max-width: 1100px) {
    .dl-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 17px; }
    .dl-card { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 20px; }
    .dl-card-featured { padding-left: 16px; }
    .dl-card-icon { width: 56px; height: 64px; font-size: 26px; }
    .dl-card-actions { grid-column: 2; padding: 0; justify-content: flex-start; }
}
@media (max-width: 780px) {
    .dl-layout { display: block; }
    .dl-sidebar { margin-bottom: 18px; }
    .dl-category-nav { display: flex; flex-wrap: wrap; gap: 5px; }
    #body-container .dl-page .dl-category-link { width: auto; padding: 9px 12px; border: 1px solid #d6e1e7; }
    .dl-category-divider { display: none; }
    .dl-page-header { padding: 24px 22px; }
}
@media (max-width: 570px) {
    .dl-page { font-size: 15px; }
    .dl-page-header { padding: 22px 18px; }
    .dl-page-header h1 { font-size: 27px; }
    .dl-page .dl-intro { font-size: 14px; }
    .dl-filter-form { grid-template-columns: 1fr; gap: 13px; padding: 17px; }
    .dl-page .dl-filter-form input[type=search] { width: 100%; }
    .dl-search-line .dl-button { padding: 10px 12px; }
    .dl-card { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 17px; }
    .dl-card-featured { padding-left: 12px; }
    .dl-card-icon { width: 45px; height: 53px; font-size: 23px; }
    .dl-page .dl-card h3 { font-size: 17px; }
    .dl-card-actions { grid-column: 1 / -1; }
    .dl-card-actions .dl-button { width: 100%; }
    .dl-results-head { align-items: flex-start; }
    .dl-pagination { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .dl-card, .dl-page .dl-button { transition: none; }
}

/* ---- 2026 visual refresh: compact catalogue and download detail ---- */
.dl-page-header {
    margin: 0 0 22px;
    padding: 4px 0 15px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d7e5ed;
    border-radius: 0;
}
.dl-page-header h1 { font-size: clamp(27px, 2.6vw, 35px); letter-spacing: -.03em; }
.dl-sidebar { border-color: #dae7ed; box-shadow: 0 3px 16px rgba(18, 62, 90, .035); }
.dl-filter-form { border-color: #dce8ee; padding: 17px 19px; background: #f9fcfd; }
.dl-results-head { margin-top: 21px; }
.dl-card:not(.dl-card-featured) { border-color: #d7e4eb; box-shadow: 0 3px 14px rgba(18, 62, 90, .04); }
.dl-card:not(.dl-card-featured):hover { border-color: #93bccf; box-shadow: 0 9px 25px rgba(18, 62, 90, .09); }
.dl-card:not(.dl-card-featured) .dl-card-icon { background: #edf6fa; border-color: #d5e7f0; }
.dl-card-description { max-width: 80ch; }
.dl-card-meta { border-top-color: #e9eff3; }

/* Download detail has its own structural styles, independent of the article parser. */
.download-detail {
    --dd-blue: #086c9c;
    --dd-dark: #123e5a;
    --dd-ink: #1d2d38;
    --dd-muted: #516d7e;
    --dd-border: #d7e5ed;
    max-width: 1150px;
    margin: 2px auto 65px;
    color: var(--dd-ink);
    font-size: 16px;
    line-height: 1.6;
}
.download-detail .fa { font-family: FontAwesome; }
#body-container .download-detail a { text-decoration: none; border-bottom: 0; text-shadow: none; }
#body-container .download-detail a:hover { text-shadow: none; }
.download-detail-navigation { margin: 0 0 15px; }
#body-container .download-detail-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #245e7d;
    font-size: 14px;
    font-weight: 600;
}
#body-container .download-detail-navigation a:hover { color: #0a75a4; text-decoration: underline; }
.download-detail-hero {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 30px);
    padding: clamp(21px, 3.3vw, 38px);
    margin-bottom: 21px;
    border: 1px solid #cfe1eb;
    border-radius: 9px;
    background: linear-gradient(114deg, #f2f9fc 0%, #e2f0f7 100%);
}
.download-detail-file-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 86px;
    height: 91px;
    border: 1px solid #c8e1ef;
    border-radius: 9px;
    background: #fff;
    color: var(--dd-blue);
    font-size: 39px;
    box-shadow: 0 6px 19px rgba(18, 62, 90, .055);
}
.download-detail-heading { min-width: 0; }
.download-detail-eyebrow {
    margin: 0 0 9px;
    color: #3c718d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
}
.download-detail h1 {
    margin: 0 0 12px;
    color: var(--dd-dark);
    font-size: clamp(27px, 3vw, 37px);
    line-height: 1.22;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}
.download-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #4d697a; font-size: 14px; }
.download-detail-meta-separator { width: 4px; height: 4px; border-radius: 50%; background: #7f9cad; }
.download-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: start; gap: 21px; }
.download-detail-main { min-width: 0; }
.download-detail-download,
.download-detail-facts,
.download-detail-description {
    border: 1px solid var(--dd-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(18, 62, 90, .045);
}
.download-detail-download { padding: clamp(20px, 3vw, 33px); }
.download-detail-section-heading { display: flex; align-items: flex-start; gap: 13px; margin: 0 0 15px; }
.download-detail-section-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 7px; background: #e9f4f9; color: #0c628c; }
.download-detail .download-detail-section-heading h2 { margin: 0 0 4px; color: var(--dd-dark); font-size: 22px; line-height: 1.3; }
.download-detail .download-detail-section-heading p { margin: 0; color: var(--dd-muted); font-size: 14px; line-height: 1.5; }
.download-detail-intro { margin: 12px 0 17px; color: #3d5665; font-size: 14px; line-height: 1.65; }
.download-detail-intro:empty { display: none; }
.download-detail-intro p { margin: 0 0 9px; color: inherit; font-size: inherit; line-height: inherit; }
.download-detail-intro a { color: var(--dd-blue); text-decoration: underline !important; text-underline-offset: 3px; }
.download-detail-facts { padding: 23px 24px; }
.download-detail .download-detail-facts h2 { margin: 0 0 16px; color: var(--dd-dark); font-size: 17px; font-weight: 700; }
.download-detail-facts dl { margin: 0; }
.download-detail-fact { padding: 11px 0; border-top: 1px solid #e8f0f4; }
.download-detail-fact:first-child { border-top: 0; padding-top: 0; }
.download-detail-fact:last-child { padding-bottom: 0; }
.download-detail-fact dt { margin: 0 0 3px; color: var(--dd-muted); font-size: 12px; font-weight: 600; }
.download-detail-fact dd { margin: 0; color: var(--dd-dark); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.download-detail-description { padding: clamp(20px, 3vw, 32px); margin-top: 22px; }
.download-detail-description:has(.download-detail-description-body:empty) { display: none; }
.download-detail-description-body { color: #385364; font-family: 'Nunito Sans', 'Archivo', Arial, sans-serif; line-height: 1.76; }
.download-detail-description-body h2 { margin: 0 0 14px; color: var(--dd-dark); font-size: 21px; font-weight: 700; }
.download-detail-description-body h3 { color: #245b79; font-size: 18px; margin: 18px 0 8px; }
.download-detail-description-body p { margin: 0 0 12px; line-height: inherit; color: inherit; }
.download-detail-description-body a { color: var(--dd-blue); text-decoration: underline !important; text-underline-offset: 3px; }
.download-detail-description-body li { line-height: 1.65; }

/* The legacy DownloadGateForm is restyled, not replaced: validation, captcha,
 * optional fields, anti-bot protection and submission behavior stay intact. */
.download-detail .DownloadGate { width: 100%; margin: 0; }
.download-detail .DownloadGate .formular { display: flow-root; }
.download-detail .DownloadGate .formular > .row,
.download-detail .DownloadGate #form-morefields > .row { clear: both; float: none; display: flow-root; padding: 0; margin: 0 0 16px; }
.download-detail .DownloadGate .row .label,
.download-detail .DownloadGate .row .input { float: none; display: block; width: 100%; text-align: left; }
.download-detail .DownloadGate .row .label { color: #274b60; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.download-detail .DownloadGate .row .label:empty { display: none; }
.download-detail .DownloadGate .row .input input[type=text],
.download-detail .DownloadGate .row .input input[type=email],
.download-detail .DownloadGate .row .input select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #b9cfdb;
    border-radius: 8px;
    background: #fff;
    color: #1d2d38;
    font-size: 15px;
    box-shadow: none;
}
.download-detail .DownloadGate .row .input input:focus,
.download-detail .DownloadGate .row .input select:focus { border-color: var(--dd-blue); outline: 2px solid #b5dfea; outline-offset: 0; }
.download-detail .DownloadGate .row .input.submit { padding: 0; }
#body-container .download-detail .DownloadGate .row .input input.download_button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    margin: 4px 0 0;
    /* Solid primary action in every website theme, including dark/contrast. */
    color: var(--mtq-on-primary, #fff);
    background: var(--mtq-primary, #1266a7);
    border: 2px solid var(--mtq-primary-strong, #094d82);
    border-radius: 9px;
    box-shadow: 0 5px 15px var(--mtq-shadow, rgba(17, 88, 149, .18));
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}
#body-container .download-detail .DownloadGate .row .input input.download_button:hover,
#body-container .download-detail .DownloadGate .row .input input.download_button:focus-visible {
    color: var(--mtq-on-primary, #fff);
    background: var(--mtq-primary-strong, #094d82);
    border-color: var(--mtq-primary-strong, #094d82);
    box-shadow: 0 6px 18px var(--mtq-shadow, rgba(17, 88, 149, .25));
}
#body-container .download-detail .DownloadGate .row .input input.download_button:disabled {
    background: #a3b6c1;
    color: #263e4a;
    border-color: #a3b6c1;
    box-shadow: none;
    cursor: not-allowed;
}
.download-detail .DownloadGate .row[style*="height: 20px"] { position: absolute; left: -10000px; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; }
.download-detail .DownloadGate #form-moretoggle { margin: 6px 0 0; float: none; padding: 13px 15px; border: 1px solid #dae7ed; border-radius: 8px; background: #f7fafc; box-shadow: none; font-size: 14px; }
.download-detail .DownloadGate #form-moretoggle span { color: #225b7a; font-size: 14px; font-weight: 600; }
.download-detail .DownloadGate #form-moretoggle img { width: 20px; height: 20px; opacity: .65; }
.download-detail .DownloadGate #form-morefields { padding: 16px 13px 2px; background: #fafcfd; border: 1px solid #e6eef3; border-top: 0; border-radius: 0 0 8px 8px; }
.download-detail .DownloadGate .errorbox { padding: 12px 15px; margin: 10px 0; border: 1px solid #e0a8a8; background: #fff6f6; border-radius: 8px; }
.download-detail .DownloadGate .errors { color: #9d2d2d; }

@media (max-width: 820px) {
    .download-detail-layout { grid-template-columns: 1fr; }
    .download-detail-facts { padding: 18px 22px; }
    .download-detail-facts dl { display: flex; flex-wrap: wrap; gap: 12px 25px; }
    .download-detail-fact { flex: 1 1 140px; padding: 0; border-top: 0; }
}
@media (max-width: 550px) {
    .dl-page-header { padding: 0 0 12px; margin-bottom: 18px; }
    .download-detail-hero { padding: 19px 17px; align-items: flex-start; gap: 13px; border-radius: 8px; }
    .download-detail-file-icon { width: 55px; height: 61px; border-radius: 7px; font-size: 25px; }
    .download-detail h1 { font-size: 25px; }
    .download-detail-download, .download-detail-facts, .download-detail-description { border-radius: 8px; }
    .download-detail .download-detail-section-heading h2 { font-size: 20px; }
    .download-detail-download { padding: 20px 17px; }
    .download-detail-meta { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #body-container .download-detail .DownloadGate .row .input input.download_button { transition: none; }
}
/* The new section heading already explains that personal details are optional. */
.download-detail .DownloadGate .row:has(> #labelInfo) { display: none; }

/* Local-only demo preview of catalog items without a physical file. */
.dl-page .dl-demo-banner,.download-detail .download-demo-unavailable{padding:12px 15px;border:1px solid #bed8e7;background:#edf6fa;color:#25546b;border-radius:7px;line-height:1.5}
.dl-page .dl-demo-banner{margin:12px 0 4px;font-size:14px}
.download-detail .download-demo-unavailable{font-weight:600;margin:12px 0}

/* Recommended downloads must remain readable in dark and high-contrast themes. */
html[data-mtq-effective="dark"] .dl-page .dl-card-featured {
    background: linear-gradient(110deg, var(--mtq-surface-soft) 0%, var(--mtq-surface) 100%);
    color: var(--mtq-text);
}
html[data-mtq-effective="dark"] .dl-page .dl-card-featured .dl-card-icon {
    background: var(--mtq-surface-soft);
    border-color: var(--mtq-border);
    color: var(--mtq-text);
}
html[data-mtq-effective="dark"] .dl-page .dl-card-featured .dl-card-description {
    color: var(--mtq-text);
}
html[data-mtq-effective="dark"] .dl-page .dl-card-featured :is(.dl-card-category,.dl-card-meta) {
    color: var(--mtq-text-muted);
}
html[data-mtq-effective="dark"] .dl-page .dl-featured {
    background: var(--mtq-primary);
    color: var(--mtq-on-primary);
}
html[data-mtq-effective="dark"] .dl-page .dl-featured .fa { color: inherit; }
html[data-mtq-theme^="contrast-"] .dl-page .dl-card-featured {
    border-color: var(--mtq-border-strong);
    box-shadow: none;
}
