.kv-library, .kv-watch { color: #343e43; overflow-wrap: anywhere; }
.kv-author { display: flex; align-items: flex-start; gap: 20px; padding: 22px 0; margin: 30px 0; border: 0; border-bottom: 1px solid #dce2e5; border-radius: 0; color: #343e43; font-size: 14px; line-height: 1.6; }
.kv-author img { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 50%; object-fit: cover; }
.kv-author__label { display: block; color: #58646b; font-size: 12px; font-weight: 400; margin-bottom: 4px; }
.kv-author [itemprop="name"] { font-size: 17px; font-weight: 500; line-height: 1.5; }
.content .kv-author p, .kv-author p { margin: 4px 0 12px; color: #58646b; font-size: 14px; line-height: 1.6; }
.content .kv-author a, .kv-author a { color: #174f68; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.kv-author a:hover { color: #386678; }
@media (max-width: 480px) { .kv-author { gap: 14px; padding: 18px 0; } .kv-author img { width: 56px; height: 56px; flex-basis: 56px; } .kv-author > div { min-width: 0; } }
.kv-watch h1, .kv-catalog-page .articles__heading { overflow-wrap: anywhere; }
.kv-catalog-page .articles__heading { color: #343e43; font-weight: 500; }
.kv-library a, .kv-watch a { color: #174f68; }
.kv-library a:hover, .kv-watch a:hover { color: #386678; }
.kv-intro { max-width: 850px; font-size: 20px; line-height: 1.65; }
.kv-catalog-layout { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 48px; align-items: start; }
.kv-nav { position: sticky; top: calc(5rem + 24px); display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.kv-nav-scroll { display: flex; flex-direction: column; min-width: 0; }
.kv-nav button { display: none; }
.ka-catalog { padding-bottom: 40px; }
.ka-catalog .articles__heading { margin-block: 28px; color: #343e43; font-weight: 500; }
.ka-catalog .kv-nav { margin-top: 0; }
.ka-catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 28px; margin-block: 24px 36px; }
.ka-catalog-card { min-width: 0; }
.ka-catalog-card__link { display: block; border: 0; text-decoration: none; }
.ka-catalog .ka-catalog-card__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 14px; border-radius: 3px; }
.ka-catalog-kind { display: block; color: #58646b; font-size: 13px; margin-bottom: 6px; }
.ka-catalog-card h2 { font-size: 20px; line-height: 1.35; font-weight: 500; margin: 0; text-transform: none; }
.ka-catalog-card p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #58646b; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.ka-catalog-card__link:focus-visible { outline: 2px solid #174f68; outline-offset: 4px; }
@media(max-width:768px) { .ka-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .ka-catalog-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 768px) and (pointer: fine) {
    .kv-nav-scroll, .kv-nav-scroll a { cursor: grab; user-select: none; }
    .kv-nav-scroll.is-dragging, .kv-nav-scroll.is-dragging a { cursor: grabbing; }
}
.kv-library .kv-nav a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; color: #40515a; border: 0; border-inline-start: 3px solid transparent; text-decoration: none; line-height: 1.35; }
.kv-library .kv-nav a:hover { color: #174f68; background: #f0f3f4; }
.kv-library .kv-nav a[aria-current] { color: #174f68; border-inline-start-color: #174f68; background: #e9edef; font-weight: 500; }
.kv-library .kv-nav a:focus-visible { outline: 2px solid #174f68; outline-offset: 2px; }
.kv-catalog-content { min-width: 0; }
.kv-section { margin: 48px 0; scroll-margin-top: 150px; }
.kv-section + .kv-section { border-top: 1px solid #dce2e5; padding-top: 40px; }
.kv-section h2 { margin: 0 0 24px; font-size: 28px; font-weight: 500; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.kv-card { min-width: 0; margin-bottom: 0; }
.kv-library .kv-card__link, .kv-watch .kv-card__link { display: flex; flex-direction: inherit; width: 100%; text-decoration: none; border: 0; }
.kv-library .kv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv-library .kv-card, .kv-library .kv-card__link { flex-direction: column; }
.kv-library .kv-card__image { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: none; border-radius: 3px; margin: 0 0 14px; background: #e9edef; }
.kv-library .kv-card__image > img { object-fit: contain; }
.kv-library .kv-play { left: 14px; }
.kv-card .article__box { min-width: 0; }
.kv-card__image { position: relative; background: #e9edef; margin-top: 0; margin-left: 0; }
.kv-card__image > img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.kv-play { position: absolute; left: 60px; bottom: 12px; display: grid; place-items: center; width: 30px; height: 30px; padding-left: 2px; color: white; background: rgba(28, 64, 81, .82); border-radius: 50%; font-size: 13px; }
.kv-card h3 { font-size: 20px; line-height: 1.35; font-weight: 500; margin: 0 0 8px; text-transform: none; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.kv-card p { font-size: 15px; line-height: 1.5; margin: 8px 0 0; color: #404040; }
.kv-kind { color: #58636a; font-size: 14px; }
.kv-description h2 { font-size: 24px; font-weight: 500; margin-top: 26px; }
.kv-info { margin: 0 0 26px; padding: 0 0 18px; border-bottom: 1px solid #dce2e5; }
.kv-description .kv-info__name { margin: 0 0 14px; color: #343e43; font-size: 17px; font-weight: 500; line-height: 1.5; }
.kv-info__name > span { display: block; color: #58646b; font-size: 14px; font-weight: 400; }
.kv-info__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: #58646b; font-size: 13px; line-height: 1.6; }
.kv-info__facts > span { display: inline-flex; flex-wrap: wrap; gap: 0 7px; }
.kv-info__value { color: #343e43; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv-archive { padding-top: 30px; border-top: 1px solid #d9dfe2; }
.kv-archive ul { columns: 2; column-gap: 36px; }
.kv-archive li { break-inside: avoid; margin-bottom: 14px; }
.kv-back { margin-bottom: 26px; }
.kv-back a { display: inline-block; padding: 10px 0; }
.kv-watch h1 { font-weight: 500; font-size: 38px; line-height: 1.25; margin: 0 0 28px; }
.kv-watch__layout--portrait { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 38px; }
.kv-player { min-width: 0; }
.kv-player video { display: block; width: 100%; height: auto; max-height: 75vh; background: #172127; object-fit: contain; border-radius: 3px; }
.kv-description { margin-top: 24px; }
.kv-watch__layout--portrait .kv-description { margin-top: 0; }
.kv-byline, .kv-note, .kv-dev-note { font-size: 15px; line-height: 1.6; color: #535f66; }
.kv-watch .kv-related, .kv-back a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: #00416b; background: linear-gradient(180deg, rgba(245,247,248,.15), rgba(211,218,222,.45)); border: 0; border-radius: 3px; text-decoration: none; font-size: 14px; line-height: 24px; }
.kv-watch .kv-related { margin: 15px 0 20px; }
.kv-watch .kv-related:hover, .kv-back a:hover { color: #244e68; background: linear-gradient(180deg, rgba(239,242,244,.25), rgba(202,212,218,.55)); text-decoration: underline; text-underline-offset: 3px; }
.kv-related svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kv-transcript { margin-top: 30px; border-bottom: 1px solid #d5dce0; }
.kv-transcript summary { padding: 18px 0; cursor: pointer; }
.kv-transcript div { line-height: 1.7; }
.kv-dev-note { padding: 16px 0; }
.kv-player__error[hidden] { display: none; }
@media (max-width: 768px) {
    .kv-catalog-layout { display: block; }
    .kv-nav { position: sticky; z-index: 20; top: 5rem; flex-direction: row; gap: 0; margin: 26px -12px 32px; padding: 0; background: #00416bed; box-shadow: 0 3px 8px #002b4626; }
    .kv-nav-scroll { flex: 1; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .kv-nav-scroll::-webkit-scrollbar { display: none; }
    .kv-library .kv-nav a { display: block; flex: 0 0 auto; min-height: 48px; border: 0; padding: 14px 10px; white-space: nowrap; color: #fff; font-size: 12px; line-height: 20px; font-weight: 400; text-transform: uppercase; }
    .kv-library .kv-nav a:hover, .kv-library .kv-nav a[aria-current] { background: #ffffff1f; color: #fff; text-decoration: underline; text-underline-offset: 6px; }
    .kv-nav button:not([hidden]) { display: grid; place-items: center; flex: 0 0 32px; width: 32px; padding: 0; border: 0; border-radius: 0; background: #00365766; color: white; cursor: pointer; }
    .kv-nav button:disabled { opacity: .4; cursor: default; }
    .kv-nav button:not(:disabled):hover { background: #00365799; }
    .kv-nav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
    .kv-library .kv-nav :is(a,button):focus-visible { outline: 2px solid white; outline-offset: -4px; }
    .kv-library .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kv-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .kv-watch__layout--portrait { display: block; }
    .kv-watch__layout--portrait .kv-description { margin-top: 24px; }
    .kv-watch h1 { font-size: 28px; }
    .kv-archive ul { columns: 1; }
    .kv-player video { max-height: 70svh; }
}
@media (max-width: 480px) {
    .kv-library .kv-grid { grid-template-columns: minmax(0, 1fr); }
}

.kv-embed { margin-block: 24px 32px; }
.content .kv-embed h3 { margin: 0 0 16px; font-weight: 500; font-size: 20px; line-height: 1.35; text-transform: none; overflow-wrap: normal; hyphens: auto; }
.kv-embed .kv-player { max-width: 850px; }
.content .kv-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; color: #00416b; background: linear-gradient(180deg, rgba(245,247,248,.15), rgba(211,218,222,.45)); border: 0; border-radius: 3px; text-decoration: none; font-size: 14px; line-height: 24px; }
.content .kv-more:hover { color: #244e68; background: linear-gradient(180deg, rgba(239,242,244,.25), rgba(202,212,218,.55)); text-decoration: underline; text-underline-offset: 3px; }
.kv-more svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kv-more:focus-visible { outline: 2px solid #00416b; outline-offset: 3px; }
.kv-embed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; margin-block: 24px 32px; }
.kv-embed-grid .kv-embed { min-width: 0; margin: 0; }
@media (max-width: 768px) { .kv-embed-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 769px) {
    .kv-embed-grid .kv-embed { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
    .kv-embed-grid .kv-player video { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: none; object-fit: contain; }
    .kv-embed-grid .kv-more { justify-self: start; }
}

.kv-video-group { margin-block: 24px 32px; }
.kv-video-group .kv-embed-grid { margin-block: 0; }
.kv-embed-grid:has(> .kv-embed:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 650px; }
/* Video names are captions within a section, below the h2 level. */
.page-template-template-operation .content .kv-embed h3 {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
    color: #40515a;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .page-template-template-operation .content .kv-embed h3 { font-size: 16px; }
}

/* Roomier desktop catalogue navigation; retain the horizontal mobile menu. */
@media (min-width: 769px) {
 .kv-catalog-layout { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 32px; }
 .kv-nav-scroll { gap: 8px; max-height: calc(100dvh - 150px); overflow-y: auto; }
 .kv-library .kv-nav a { box-sizing: border-box; flex-shrink: 0; min-height: 58px; padding: 16px; font-size: 18px; background: #f3f5f6; }
 .kv-library .kv-nav a:hover, .kv-library .kv-nav a[aria-current] { background: #e5ecef; }
}
@media (min-width: 769px) and (max-width: 1100px) {
 .kv-library .kv-grid, .ka-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 769px) {
 .kv-nav-scroll, .results-nav ul { gap: var(--menu-gap, 8px); }
 .kv-nav-scroll, .results-layout .results-nav { max-height: var(--menu-height, calc(100dvh - 150px)); }
 .kv-library .kv-nav a, .results-nav a { min-height: 0; padding: var(--menu-padding, 16px); font-size: var(--menu-font, 18px); }
}
