/* Publication covers need a contained portrait treatment, unlike Blog images. */
.cv-research { --cv-hub-image-filter: grayscale(1) sepia(.35) hue-rotate(55deg) saturate(1.3); }
/* Keep wide tables inside their scroll region rather than sizing the implicit grid track. */
.cv-research .cv-company-section-intro { grid-template-columns: minmax(0, 1fr); }
.cv-research .cv-company-section-intro > * { min-width: 0; }
.cv-research .cv-framework-table-wrap { min-width: 0; width: 100%; }
.cv-research[data-rapid-guide] .cv-case-hero-panel { display: flex; flex-direction: column; align-items: flex-start; }
.cv-research[data-rapid-guide] .cv-rapid-guide-cover { position: relative; align-self: stretch; min-width: 0; aspect-ratio: 640 / 427; padding: 0; margin: 0; overflow: hidden; }
.cv-research[data-rapid-guide] .cv-rapid-guide-cover > img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: inherit; filter: var(--cv-hub-image-filter); }
@media (min-width: 701px) { .cv-research[data-rapid-guide] .cv-rapid-guide-cover { aspect-ratio: auto; } }
.cv-research .cv-v1-post { --cv-research-cover-height: 280px; }
.cv-research .cv-v1-post-image { display: flex; align-items: flex-start; justify-content: flex-start; aspect-ratio: auto; height: auto; padding: var(--cv-card-padding); background: transparent; border-radius: inherit; }
.cv-research .cv-v1-post-image img { width: auto; height: var(--cv-research-cover-height); max-width: 100%; object-fit: contain; object-position: left top; border-radius: inherit; filter: var(--cv-hub-image-filter); }
.cv-research .cv-v1-post-grid { align-items: stretch; }
.cv-research .cv-v1-post { min-width: 0; }
.cv-research .cv-v1-post-grid > .cv-v1-post { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.cv-research [data-paper-draft] .cv-v1-post-image img,
.cv-research[data-research-paper] .cv-v1-post-image img { filter: none; }
.cv-research .cv-v1-post-grid .cv-v1-post-copy { flex: 1; }
.cv-research .cv-v1-post-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; min-height: calc(var(--cv-research-cover-height) + var(--cv-card-padding) * 2); }
.cv-research .cv-v1-post-copy h3 { margin: 0 0 10px; }
.cv-research .cv-v1-post-meta { margin-bottom: 0; }
/* Override the ID specificity inherited from the global :is(.cv-learn, #insights) rules. */
#main.cv-research .cv-v1-post-meta > span:not([data-publication-author]) { --cv-section-icon-bg: #f3f7eb; --cv-section-icon-border: #d4e2b9; --cv-section-icon-color: #465d2a; }
#main.cv-research .cv-v1-post-meta > [data-publication-author] { --cv-section-icon-bg: #eaf6f1; --cv-section-icon-border: #b9d9ca; --cv-section-icon-color: #3d6958; }
.cv-research .cv-v1-post-meta + .cv-v1-post-meta { margin-top: 6px; }
.cv-research-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; width: 100%; margin-top: auto; padding-top: 12px; }
.cv-research-actions > .cv-v1-text-link { min-width: 0; margin: 0; }
.cv-research-actions > .cv-v1-text-link svg { flex-shrink: 0; }
.cv-research-actions .cv-case-share { margin: 0; width: auto; align-self: center; flex-shrink: 0; flex-wrap: nowrap; }
.cv-research-actions .cv-case-share:only-child { margin-left: auto; }
.cv-research-library-intro { margin: 0 0 var(--cv-content-gap); }
.cv-research .cv-research-featured { display: grid; grid-template-columns: minmax(0, 1fr); }
.cv-research .cv-research-featured { --cv-research-cover-height: 280px; }
.cv-research-book-cover { position: relative; display: block; max-width: 100%; overflow: hidden; border-radius: inherit; }
.cv-research-book-cover > img { display: block; }
.cv-research[data-research-paper] .cv-research-featured { --cv-research-cover-height: 320px; }
.cv-research-featured .cv-v1-post-copy { text-align: left; }
.cv-research-featured .cv-v1-post-copy h3 { margin-bottom: 8px; }
.cv-research-featured .cv-v1-post-copy p { max-width: 72ch; margin-top: 8px; }
.cv-research-featured .cv-research-actions { justify-content: space-between; gap: var(--cv-content-gap); }
@media (min-width: 701px) {
    .cv-research .cv-v1-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cv-research .cv-research-featured { grid-template-columns: max-content minmax(0, 1fr); align-items: stretch; }
    .cv-research .cv-v1-post { column-gap: 0; }
    .cv-research .cv-v1-post-image { width: auto; padding-right: 0; }
    .cv-research .cv-v1-post-image img { max-width: none; }
    .cv-research .cv-v1-post-copy { padding-left: 20px; }
    .cv-research .cv-research-paper--no-cover .cv-v1-post-copy { padding-left: var(--cv-card-padding); }
}
@media (min-width: 701px) and (max-width: 1279px) { .cv-research .cv-v1-post-grid { grid-template-columns: minmax(0, 1fr); } }
/* Compact windows keep readable copy beside full covers; wide layouts are unchanged. */
@media (min-width: 981px) and (max-width: 1279px) {
    .cv-home-v2.cv-research { --cv-page-gutter: 24px; }
}
@media (max-width: 1279px) {
    .cv-research-actions { flex-wrap: wrap; }
    .cv-research-actions > .cv-v1-text-link { max-width: 100%; overflow-wrap: anywhere; }
    .cv-research-actions .cv-case-share { margin-inline-start: auto; }
}
.cv-research .cv-research-paper--no-cover { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) {
    .cv-home-v2 .cv-publication-hero { --cv-publication-cover-width: 100%; }
    .cv-research .cv-v1-post:not(.cv-publication-hero) .cv-v1-post-image img { display: block; width: 100%; height: auto; }
    .cv-research .cv-v1-post-grid > .cv-v1-post { grid-template-columns: minmax(0, 1fr); }
    .cv-research .cv-v1-post-copy { min-height: 0; }
    .cv-research .cv-v1-post-image { padding-bottom: 0; }
    .cv-research .cv-v1-post:not(.cv-publication-hero) .cv-v1-post-image + .cv-v1-post-copy { padding-top: 20px; }
    .cv-research-actions { margin-top: 12px; padding-top: 0; }
}
.cv-research[data-rapid-guide] .cv-rapid-guide-table { table-layout: auto; min-width: 640px; }
.cv-research[data-rapid-guide] .cv-rapid-guide-table th:first-child { width: auto; }
.cv-research[data-rapid-guide] .cv-rapid-guide-table[data-columns="2"] { min-width: 480px; }
.cv-research[data-rapid-guide] .cv-rapid-guide-table:is([data-columns="5"], [data-columns="6"]) { min-width: 960px; }
.cv-research[data-rapid-guide] .cv-rapid-guide-table:is([data-columns="7"], [data-columns="8"]) { min-width: 1120px; }
/* Featured book uses separate, equally tall media and copy surfaces. */
#main.cv-research .cv-research-featured.cv-research-featured--split { gap: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; align-items: stretch; }
.cv-research .cv-research-featured--split > .cv-v1-post-image { padding: 0; width: 100%; min-width: 0; overflow: hidden; }
.cv-research .cv-research-featured--split .cv-research-book-cover { width: 100%; height: 100%; aspect-ratio: 330 / 482; }
.cv-research .cv-research-featured--split .cv-research-book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-research .cv-research-featured--split > .cv-v1-post-copy { padding: var(--cv-card-padding); min-height: 0; height: auto; }
@media (min-width: 701px) {
    .cv-research .cv-research-featured--split { grid-template-columns: 190px minmax(0, 1fr); }
}
