/* ROOT MAP / FREE DOWNLOAD — brand red #cf0020 / navy #0d2341. v02 color correction; scoped styles. */
.rm-dl-page, .rm-dl-home {
    --dl-ink: #0d2341;
    --dl-muted: #526075;
    --dl-line: #dbe3ed;
    --dl-paper: #f3f6fa;
    --dl-red: #cf0020;
    --dl-red-dark: #ae001b;
    color: var(--dl-ink);
}
.rm-dl-page *, .rm-dl-home * { box-sizing: border-box; }
.rm-dl-page .rm-dl-hero {
    padding: clamp(38px, 5.5vw, 75px) 0;
    background: linear-gradient(112deg,#ffffff 0%,#f5f9fc 60%,#e7f3fb 100%);
    border-bottom: 1px solid var(--dl-line);
    text-align: left;
}
.rm-dl-hero .section-label, .rm-dl-home .section-label {
    text-align: left;
    color: var(--dl-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    margin: 0 0 10px;
}
.rm-dl-hero h1 {
    margin: 0;
    color: var(--dl-ink);
    font-size: clamp(26px, 3.65vw, 43px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .025em;
    overflow-wrap: anywhere;
}
.rm-dl-hero h1 span { color: var(--dl-red); }
.rm-dl-hero-copy { margin: 14px 0 0; font-size: clamp(14px,1.4vw,16px); line-height: 1.85; color: var(--dl-muted); }
.rm-dl-benefits { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 23px; }
.rm-dl-benefits > span { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; line-height: 1.4; padding: 8px 13px; border: 1px solid var(--dl-line); border-radius: 99px; background: #fff; color: var(--dl-ink); font-weight: 700; }
.rm-dl-benefits .icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; color: var(--dl-red); fill: none; stroke: currentColor; stroke-width: 1.8; }
.rm-dl-mobile-break { display: none; }
.rm-dl-library { padding: 22px 0 clamp(52px, 7vw, 90px); }
.rm-dl-crumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--dl-muted); font-size: 13px; line-height: 1.7; margin: 0 0 34px; }
.rm-dl-page .rm-dl-crumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rm-dl-list-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--dl-line); }
.rm-dl-list-heading h2 { margin: 0; color: var(--dl-ink); font-size: clamp(20px,2.5vw,27px); font-weight: 800; letter-spacing: .015em; line-height: 1.5; }
.rm-dl-list-heading > span { color: var(--dl-muted); font-size: 13px; }
.rm-dl-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.rm-dl-grid-single { grid-template-columns: minmax(0,1fr); }
.rm-dl-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(17px,2.1vw,28px); align-items: start; min-width: 0; margin: 0; padding: clamp(18px,2.4vw,30px); border: 1px solid var(--dl-line); border-radius: 17px; background: #fff; box-shadow: 0 5px 21px rgba(13,35,65,.06); }
.rm-dl-grid-single .rm-dl-card, .rm-dl-card-detail { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(24px,4.5vw,65px); align-items: center; padding: clamp(24px,4vw,50px); }
.rm-dl-media { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 18px 14px 13px; border-radius: 12px; background: var(--dl-paper); }
.rm-dl-page .rm-dl-preview { display: block; width: 100%; max-width: 268px; border: 0; text-decoration: none; outline-offset: 4px; }
.rm-dl-preview img { display: block; width: auto; max-width: 100%; height: auto; max-height: 350px; object-fit: contain; background: #fff; box-shadow: 0 3px 12px rgba(13,35,65,.15); margin: 0 auto; transition: transform .2s ease; }
.rm-dl-preview:hover img { transform: translateY(-2px); }
.rm-dl-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 180px; aspect-ratio: 3/4; gap: 12px; border-radius: 6px; background: #fff; color: var(--dl-muted); font-size: 13px; }
.rm-dl-placeholder .icon { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.rm-dl-page .rm-dl-preview-text { display: inline-block; margin: 12px 0 0; font-size: 12px; color: var(--dl-muted); text-decoration: underline; text-underline-offset: 3px; text-align: center; }
.rm-dl-card-copy { display: flex; flex-direction: column; min-width: 0; }
.rm-dl-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.rm-dl-tags > span { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 5px; background: var(--dl-paper); color: var(--dl-muted); font-size: 12px; font-weight: 700; line-height: 1.4; }
.rm-dl-tags .rm-dl-free { background: #fdecef; color: var(--dl-red-dark); }
.rm-dl-card h3, .rm-dl-card h2 { margin: 0 0 13px; padding: 0; color: var(--dl-ink); background: none; border: 0; font-size: clamp(18px,2.1vw,24px); font-weight: 800; line-height: 1.5; letter-spacing: .01em; overflow-wrap: anywhere; }
.rm-dl-grid-single .rm-dl-card h3, .rm-dl-card-detail h2 { font-size: clamp(22px,2.6vw,31px); }
.rm-dl-card h3 a { color: inherit; text-decoration: none; }
.rm-dl-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rm-dl-summary { margin: 0 0 20px; color: var(--dl-muted); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.rm-dl-grid-single .rm-dl-summary, .rm-dl-card-detail .rm-dl-summary { font-size: 16px; max-width: 630px; }
.rm-dl-spec { display: grid; gap: 6px; margin: 0 0 22px; padding: 11px 12px; border-radius: 8px; background: #f6f8fb; font-size: 12px; line-height: 1.6; }
.rm-dl-spec > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 7px; }
.rm-dl-spec dt { color: var(--dl-muted); font-weight: 700; margin: 0; }
.rm-dl-spec dd { color: var(--dl-ink); margin: 0; overflow-wrap: anywhere; }
.rm-dl-grid-single .rm-dl-spec, .rm-dl-card-detail .rm-dl-spec { max-width: 490px; font-size: 14px; padding: 14px 18px; }
.rm-dl-grid-single .rm-dl-spec > div, .rm-dl-card-detail .rm-dl-spec > div { grid-template-columns: 90px minmax(0,1fr); }
.rm-dl-actions { width: 100%; max-width: 490px; }
.rm-dl-page a.rm-dl-button, .rm-dl-home a.rm-dl-home-button {
    display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px;
    padding: 15px 10px; border: 0; border-radius: 9px; background: var(--dl-red); color: #fff !important;
    font-size: clamp(15px,1.6vw,18px); line-height: 1.45; font-weight: 800; text-align: center;
    text-decoration: none !important; box-shadow: 0 5px 14px rgba(207,0,32,.14); transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.rm-dl-grid-single a.rm-dl-button, .rm-dl-card-detail a.rm-dl-button { font-size: clamp(17px,2vw,21px); min-height: 62px; }
.rm-dl-button svg { flex: 0 0 23px; }
.rm-dl-page a.rm-dl-button:hover, .rm-dl-home a.rm-dl-home-button:hover { background: var(--dl-red-dark); transform: translateY(1px); box-shadow: 0 3px 8px rgba(174,0,27,.16); }
.rm-dl-page a:focus-visible, .rm-dl-home a:focus-visible { outline: 3px solid #0d2341; outline-offset: 4px; }
.rm-dl-no-registration { margin: 10px 0 0; color: var(--dl-muted); font-size: 12px; line-height: 1.65; text-align: center; }
.rm-dl-page a.rm-dl-related { display: inline-flex; align-items: baseline; gap: 6px; align-self: flex-start; margin: 16px 0 0; color: var(--dl-ink); font-size: 13px; font-weight: 700; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.rm-dl-body { margin: 32px 0 0; padding: clamp(20px,3vw,36px); border: 1px solid var(--dl-line); border-radius: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.rm-dl-body img { max-width: 100%; height: auto; }
.rm-dl-notice { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0 0; padding: 19px 22px; background: var(--dl-paper); border-radius: 10px; color: var(--dl-muted); font-size: 13px; line-height: 1.8; }
.rm-dl-notice > .icon { width: 24px; height: 24px; flex: 0 0 24px; stroke: var(--dl-ink); stroke-width: 1.6; fill: none; margin-top: 2px; }
.rm-dl-notice strong { color: var(--dl-ink); font-weight: 700; }
.rm-dl-notice p { margin: 4px 0 0; }
.rm-dl-column-link { margin: 28px 0 0; text-align: center; }
.rm-dl-page .rm-dl-column-link a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px 22px; border: 1px solid #aebbc9; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--dl-ink); text-decoration: none; background: #fff; }
.rm-dl-page .rm-dl-column-link a:hover { background: var(--dl-paper); }
/* Compact homepage banner, separate from the existing latest-posts section. */
.rm-dl-home { padding: 34px 0; background: #fff; }
.rm-dl-home-panel { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; align-items: center; gap: clamp(16px,3vw,28px); padding: clamp(20px,3vw,34px); background: #f7f9fc; border: 1px solid var(--dl-line); border-left: 5px solid var(--dl-red); border-radius: 12px; }
.rm-dl-home-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 12px; background: #fdecef; color: var(--dl-red); }
.rm-dl-home-icon .icon { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rm-dl-home-copy .section-label { font-size: 11px; margin-bottom: 4px; }
.rm-dl-home-copy h2 { margin: 0 0 5px; font-size: clamp(20px,2.4vw,28px); font-weight: 800; color: var(--dl-ink); line-height: 1.45; }
.rm-dl-home-copy > p:last-child { margin: 0; font-size: 14px; color: var(--dl-muted); line-height: 1.75; }
.rm-dl-home a.rm-dl-home-button { min-width: 175px; padding: 15px 18px; font-size: 15px; }
@media(max-width: 1050px) {
    .rm-dl-grid { grid-template-columns: minmax(0,1fr); }
    .rm-dl-card { grid-template-columns: minmax(0, 260px) minmax(0,1fr); align-items: center; }
}
@media(max-width: 700px) {
    .rm-dl-mobile-break { display: block; }
    .rm-dl-desktop-break { display: none; }
    .rm-dl-card, .rm-dl-grid-single .rm-dl-card, .rm-dl-card-detail { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 18px; }
    .rm-dl-card-copy { grid-row: 1; }
    .rm-dl-media { padding: 14px 12px 10px; }
    .rm-dl-preview img { max-height: 290px; }
    .rm-dl-actions, .rm-dl-grid-single .rm-dl-spec, .rm-dl-card-detail .rm-dl-spec { max-width: none; }
    .rm-dl-crumb { margin-bottom: 24px; }
    .rm-dl-grid-single .rm-dl-summary, .rm-dl-card-detail .rm-dl-summary { font-size: 14px; }
    .rm-dl-notice { padding: 14px 12px; }
    .rm-dl-home-panel { grid-template-columns: 46px minmax(0,1fr); gap: 14px; padding: 16px; }
    .rm-dl-home-icon { width: 46px; height: 46px; }
    .rm-dl-home-icon .icon { width: 27px; height: 27px; }
    .rm-dl-home a.rm-dl-home-button { grid-column: 1/-1; min-width: 0; }
}
@media(prefers-reduced-motion: reduce) {
    .rm-dl-preview img, .rm-dl-button, .rm-dl-home-button { transition: none; }
    .rm-dl-preview:hover img, .rm-dl-page a.rm-dl-button:hover, .rm-dl-home a.rm-dl-home-button:hover { transform: none; }
}
