/* ========================================================================== 
   HPA VIDEOS 1.4.1
   1. Scope and shared controls
   2. Hero / Spotlight
   3. Category navigation and filters
   4. Video cards and grids
   5. Editorial collection, selected videos and channel banner
   6. Player dialog
   7. Responsive layout and reduced motion
   ========================================================================== */
/* 1. Scope and shared controls. No changes to theme elements outside this module. */
.hpc-v,
.hpc-v-dialog {
    box-sizing: border-box;
    --hv-paper: #faf8f5;
    --hv-panel: #f0ebe3;
    --hv-ink: #252725;
    --hv-muted: #6d685f;
    --hv-line: #ded6ca;
    --hv-gold: #8a6b3c;
    color: var(--hv-ink);
    font-family: var(--global-body-font-family, "DM Sans", sans-serif);
    font-size: 16px;
    line-height: 1.55;
}

.hpc-v *, .hpc-v *::before, .hpc-v *::after,
.hpc-v-dialog *, .hpc-v-dialog *::before, .hpc-v-dialog *::after {
    box-sizing: border-box;
}

.hpc-v {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 36px;
}

.hpc-v [hidden], .hpc-v-dialog [hidden] {
    display: none !important;
}

.hpc-v h1, .hpc-v h2, .hpc-v-dialog h2 {
    color: var(--hv-ink);
    font-family: var(--global-heading-font-family, "Libre Baskerville", serif);
    font-weight: 500;
    letter-spacing: -.025em;
}

.hpc-v h2 {
    font-size: clamp(25px, 2.8vw, 34px);
    line-height: 1.15;
    margin: 0;
}

.hpc-v p {
    margin: 0 0 16px;
}

.hpc-v a {
    color: inherit;
}

.hpc-v :is(a, button, input, select, summary):focus-visible,
.hpc-v-dialog :is(a, button, iframe):focus-visible {
    outline: 3px solid #39718e;
    outline-offset: 4px;
}

.hpc-v .hpc-v-button, .hpc-v-dialog .hpc-v-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid #302a22;
    border-radius: 4px;
    background: #302a22;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.hpc-v .hpc-v-button:hover, .hpc-v-dialog .hpc-v-button:hover {
    background: #685238;
    border-color: #685238;
    color: #fff;
}

.hpc-v .hpc-v-button--outline, .hpc-v-dialog .hpc-v-button--outline {
    background: transparent;
    color: var(--hv-ink);
    border-color: #c8bfb2;
}

.hpc-v .hpc-v-button--outline:hover, .hpc-v-dialog .hpc-v-button--outline:hover {
    background: var(--hv-panel);
    color: var(--hv-ink);
    border-color: var(--hv-gold);
}

.hpc-v-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hv-gold);
}

.hpc-v-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hpc-v-empty {
    padding: 30px;
    border: 1px solid var(--hv-line);
    background: var(--hv-panel);
}

.hpc-v-request-error {
    padding: 15px;
    border: 1px solid #a75943;
}

/* 2. Hero / Spotlight. Compact introduction next to the main video. */
.hpc-v-hero {
    display: grid;
    grid-template-columns: minmax(0, .45fr) minmax(0, .55fr);
    gap: 38px;
    align-items: center;
    margin-bottom: 28px;
}

.hpc-v-hero--empty {
    grid-template-columns: 1fr;
}

.hpc-v-intro {
    max-width: 450px;
}

.hpc-v-intro h1 {
    font-size: clamp(48px, 5vw, 66px);
    line-height: 1;
    margin: 0 0 16px;
}

.hpc-v-intro > p {
    color: var(--hv-muted);
    font-size: 18px;
    line-height: 1.6;
}

.hpc-v-intro > .hpc-v-lead {
    color: var(--hv-ink);
    font-family: var(--global-heading-font-family, "Libre Baskerville", serif);
    font-size: 23px;
    line-height: 1.3;
    margin-bottom: 10px;
}



/* 3. Category navigation and filters. Search uses native details, including without JS. */
.hpc-v-toolbar {
    position: relative;
    scroll-margin-top: 24px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--hv-line);
    padding-bottom: 20px;
}

/* This non-interactive anchor can receive focus on direct hash navigation.
   Only its outline is suppressed; links, buttons and fields retain focus rings. */
.hpc-v .hpc-v-toolbar:focus {
    outline: none;
}

.hpc-v-toolbar-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-right: 110px;
    min-width: 0;
}

.hpc-v-tabs {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 5px;
    overflow-x: auto;
    padding: 4px 3px;
}

.hpc-v .hpc-v-tab {
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 0 5px;
    border: 1px solid var(--hv-line);
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.hpc-v .hpc-v-tab:hover {
    border-color: var(--hv-gold);
    color: var(--hv-ink);
}

.hpc-v .hpc-v-tab.is-active {
    background: #302a22;
    border-color: #302a22;
    color: #fff;
}

.hpc-v-filters {
    border-left: 1px solid var(--hv-line);
    padding-left: 12px;
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.hpc-v-filters label {
    display: block;
    margin: 0;
}

.hpc-v :is(.hpc-v-filters, .hpc-v-search-form) :is(input, select) {
    display: block;
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--hv-line);
    border-radius: 3px;
    color: var(--hv-ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    box-shadow: none;
    margin: 0;
}

.hpc-v .hpc-v-filters select {
    width: 140px;
    padding-right: 24px;
    text-overflow: ellipsis;
}

.hpc-v-search-toggle > summary {
    position: absolute;
    top: 4px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 104px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--hv-line);
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
}

.hpc-v-search-toggle > summary::-webkit-details-marker {
    display: none;
}

.hpc-v-search-toggle > summary svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.hpc-v-search-toggle > summary:hover,
.hpc-v-search-toggle[open] > summary {
    background: var(--hv-panel);
    border-color: var(--hv-gold);
}

.hpc-v-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    padding: 14px;
    background: var(--hv-panel);
    border-radius: 4px;
}

.hpc-v-search {
    display: block;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.hpc-v-search-clear {
    font-size: 13px;
    white-space: nowrap;
}

.hpc-v [aria-busy="true"] [data-v-results] {
    opacity: .55;
}

.hpc-v [data-v-results] {
    transition: opacity .12s ease;
}

/* 4. Cards and grids. Whole card is a single accessible link. */
.hpc-v-section {
    margin: 0 0 30px;
}

.hpc-v-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.hpc-v-section-heading > :is(a,span) {
    color: var(--hv-muted);
    font-size: 13px;
}

.hpc-v-grid {
    display: grid;
    grid-template-columns: repeat(var(--hpc-v-columns, 4), minmax(0, 1fr));
    gap: 22px;
}

.hpc-v .hpc-v-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--hv-ink);
    text-decoration: none;
}

.hpc-v-cover {
    flex: 0 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    background: #e7e0d5;
}

.hpc-v .hpc-v-cover-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.hpc-v-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #8e816c;
    background: linear-gradient(135deg,#ece6dc,#d8cfbf);
    font-family: var(--global-heading-font-family, "Libre Baskerville", serif);
    font-size: 18px;
    letter-spacing: .12em;
}

.hpc-v-placeholder small {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: .22em;
}

.hpc-v-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    padding: 3px 8px;
    border-radius: 3px;
    background: #675443;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

/* Category colours. Text labels remain visible; colour is never the only identifier. */
.hpc-v-badge--restoration {
    background: #aa3d32;
}

.hpc-v-badge--profile {
    background: #2c6395;
}

.hpc-v-badge--inside {
    background: #356a43;
}

.hpc-v-badge--writing {
    background: #79509a;
}

.hpc-v-badge--finds {
    background: #806017;
}

.hpc-v-badge--story {
    background: #626b73;
}

.hpc-v-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 5px;
    border-radius: 2px;
    background: rgba(0,0,0,.84);
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.hpc-v-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.3);
    transition: background-color .2s ease;
}

.hpc-v-play svg {
    width: 23px;
    height: 23px;
    margin-left: 1px;
}

.hpc-v-card:hover .hpc-v-cover-image {
    transform: scale(1.025);
}

.hpc-v-card:hover .hpc-v-play {
    background: rgba(0,0,0,.65);
}

.hpc-v-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 9px;
}

.hpc-v-card-title {
    display: block;
    font-family: var(--global-heading-font-family, "Libre Baskerville", serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.hpc-v .hpc-v-card:hover,
.hpc-v .hpc-v-card:focus-visible {
    text-decoration: none;
}

.hpc-v-card:hover .hpc-v-card-title,
.hpc-v-card:focus-visible .hpc-v-card-title {
    color: var(--hv-gold);
    text-decoration: none;
}

/* A lighter gold remains readable over the dark editorial photographs. */
.hpc-v-card--hero:hover .hpc-v-card-title,
.hpc-v-card--selected:hover .hpc-v-card-title,
.hpc-v-card--hero:focus-visible .hpc-v-card-title,
.hpc-v-card--selected:focus-visible .hpc-v-card-title {
    color: #e6cfaa;
}

.hpc-v-card-meta {
    display: block;
    margin-top: auto;
    padding-top: 5px;
    color: var(--hv-muted);
    font-size: 13px;
    line-height: 1.4;
}

.hpc-v-card-caption {
    display: block;
    margin-bottom: 5px;
    color: var(--hv-gold);
    font-size: 12px;
}

.hpc-v-card-description {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.hpc-v-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.hpc-v-pagination:empty {
    display: none;
}

/* 5. Editorial layouts. Overlay text has a fixed gradient for legibility. */
.hpc-v .hpc-v-card--hero,
.hpc-v .hpc-v-card--selected {
    position: relative;
    container-type: inline-size;
    align-self: stretch;
    overflow: hidden;
    border-radius: 6px;
    background: #24211d;
    color: #fff;
}

.hpc-v-card--hero .hpc-v-cover,
.hpc-v-card--selected .hpc-v-cover {
    border-radius: 0;
}

.hpc-v-card--hero .hpc-v-cover::after,
.hpc-v-card--selected .hpc-v-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(0,0,0,.04) 0%,rgba(0,0,0,.28) 32%,rgba(0,0,0,.86) 100%);
}

/* The icon targets the cover centre, moving up only when the copy needs room. */
.hpc-v-editorial-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.hpc-v-play-space {
    position: relative;
    display: block;
    min-height: 0;
    pointer-events: none;
}

.hpc-v-card--hero .hpc-v-card-copy,
.hpc-v-card--selected .hpc-v-card-copy {
    position: relative;
    flex: none;
    z-index: 1;
    padding: 20px 25px;
}

.hpc-v-card--hero .hpc-v-card-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.05;
}

.hpc-v-card--hero .hpc-v-badge,
.hpc-v-card--selected .hpc-v-badge {
    z-index: 2;
    font-size: 16px;
}

.hpc-v-card--hero .hpc-v-duration,
.hpc-v-card--selected .hpc-v-duration {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-end;
}

.hpc-v-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.hpc-v-card-footer .hpc-v-card-meta {
    margin: 0;
    padding-top: 0;
    min-width: 0;
}

.hpc-v-card--hero .hpc-v-play,
.hpc-v-card--selected .hpc-v-play {
    z-index: 2;
    top: max(40px, min(28.125cqw, calc(100% - 29px)));
    width: 58px;
    height: 58px;
}

.hpc-v-card--hero .hpc-v-card-meta,
.hpc-v-card--selected .hpc-v-card-meta {
    color: #eee7dc;
}

.hpc-v-card--hero .hpc-v-card-caption,
.hpc-v-card--selected .hpc-v-card-caption {
    color: #e6cfaa;
}

.hpc-v-card--hero .hpc-v-card-description {
    max-width: 520px;
}

.hpc-v-selected {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
    margin: 0 0 30px;
}

.hpc-v-selected > :only-child {
    grid-column: 1 / -1;
    max-width: 100%;
}

.hpc-v-card--selected .hpc-v-card-title {
    font-size: clamp(23px,2.6vw,31px);
    font-weight: 500;
    line-height: 1.12;
}

/* Wide editorial cards keep text within the fixed 16:9 cover. */
.hpc-v-card--hero .hpc-v-card-title,
.hpc-v-card--selected .hpc-v-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hpc-v-card--hero .hpc-v-card-description,
.hpc-v-card--selected .hpc-v-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Narrow editorial cards retain the full image and place readable text below it.
   This follows card width, including cards placed inside a narrow editor column. */
@container (max-width: 520px) {
    .hpc-v-editorial-content {
        position: static;
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .hpc-v-play-space {
        position: absolute;
        inset: 0 0 auto;
        aspect-ratio: 16 / 9;
    }

    .hpc-v-card--hero .hpc-v-card-copy,
    .hpc-v-card--selected .hpc-v-card-copy {
        position: relative;
        inset: auto;
        flex: 1;
        padding: 18px;
    }

    .hpc-v-card--hero .hpc-v-card-footer,
    .hpc-v-card--selected .hpc-v-card-footer {
        margin-top: auto;
        padding-top: 12px;
    }

    .hpc-v-card--hero .hpc-v-cover::after,
    .hpc-v-card--selected .hpc-v-cover::after {
        background: none;
    }

    .hpc-v-card--hero .hpc-v-play,
    .hpc-v-card--selected .hpc-v-play {
        top: 50%;
    }

    .hpc-v-card--hero .hpc-v-card-title,
    .hpc-v-card--selected .hpc-v-card-title,
    .hpc-v-card--hero .hpc-v-card-description,
    .hpc-v-card--selected .hpc-v-card-description {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }
}

.hpc-v-feature {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 26px;
    margin-bottom: 30px;
    border: 1px solid var(--hv-line);
    border-radius: 7px;
    background: var(--hv-panel);
}

/* Explicit local spacing prevents theme heading margins creating a large gap. */
.hpc-v .hpc-v-feature-heading {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    max-width: 680px;
}

.hpc-v .hpc-v-feature-heading > :is(.hpc-v-eyebrow, h2, p) {
    margin: 0;
    padding: 0;
}

.hpc-v .hpc-v-feature-heading > .hpc-v-eyebrow {
    line-height: 1.4;
}

.hpc-v .hpc-v-feature-heading > h2 {
    line-height: 1.2;
}

.hpc-v-feature-background {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .12;
    pointer-events: none;
}

.hpc-v-feature-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* YouTube banner: local photo is optional; icon is SVG, not a platform emoji. */
.hpc-v-channel {
    display: flex;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    align-items: center;
    min-height: 135px;
    padding: 24px 76px 24px 26px;
    border: 1px solid var(--hv-line);
    border-radius: 6px;
    background: var(--hv-paper);
    text-decoration: none;
}

.hpc-v-channel-copy {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 22px;
}

.hpc-v-channel--image .hpc-v-channel-copy {
    width: 68%;
}

.hpc-v-channel strong {
    display: block;
    font-family: var(--global-heading-font-family, "Libre Baskerville", serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.hpc-v-channel strong + span {
    display: block;
    color: var(--hv-muted);
    font-size: 14px;
    margin-top: 5px;
}

.hpc-v-channel-icon {
    display: block;
    flex: 0 0 60px;
    width: 60px;
    height: 43px;
}

.hpc-v-channel-photo {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 50%;
}

.hpc-v-channel-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpc-v-channel-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--hv-paper) 0%, rgba(250,248,245,.96) 15%, rgba(250,248,245,.5) 40%, rgba(250,248,245,0) 65%);
}

.hpc-v-channel-arrow {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--hv-line);
    border-radius: 50%;
    background: var(--hv-paper);
    color: var(--hv-ink);
    font-size: 24px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hpc-v-channel:hover,
.hpc-v-channel:focus-visible {
    border-color: var(--hv-gold);
}

.hpc-v-channel:hover .hpc-v-channel-arrow,
.hpc-v-channel:focus-visible .hpc-v-channel-arrow {
    background: var(--hv-gold);
    border-color: var(--hv-gold);
    color: var(--hv-paper);
}

.hpc-v-related {
    padding: 20px 0;
}

.hpc-v.hpc-v-related > h2 {
    font-size: 26px;
    margin-bottom: 18px;
}

/* 6. Modal player. Native dialog traps focus and supports Escape. */
body.hpc-v-modal-open {
    overflow: hidden;
}

.hpc-v-dialog {
    width: min(1000px,94vw);
    max-width: 94vw;
    max-height: 92dvh;
    padding: 0;
    border: 1px solid #d0c6b7;
    border-radius: 8px;
    background: var(--hv-paper);
}

.hpc-v-dialog::backdrop {
    background: rgba(15,14,12,.82);
}

.hpc-v-dialog-box {
    padding: 18px;
}

.hpc-v-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.hpc-v-dialog-title-group {
    min-width: 0;
}

.hpc-v-dialog .hpc-v-badge {
    position: static;
    display: inline-block;
    margin-bottom: 6px;
    font-size: 14px;
}

.hpc-v-player-hint {
    margin: 0 0 12px;
    text-align: center;
    color: var(--hv-muted);
    font-size: 14px;
}

.hpc-v-dialog h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 5px 0 0;
}

.hpc-v-dialog .hpc-v-dialog-close {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--hv-line);
    border-radius: 4px;
    background: transparent;
    color: var(--hv-ink);
    font-size: 29px;
    cursor: pointer;
}

.hpc-v-dialog .hpc-v-dialog-close:hover {
    background: var(--hv-panel);
}

.hpc-v-player:empty {
    display: none;
}

.hpc-v-player iframe {
    min-height: 200px;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    background: #111;
}

.hpc-v-player-gate {
    padding: 42px 24px;
    background: var(--hv-panel);
    text-align: center;
}

.hpc-v-player-gate p {
    max-width: 560px;
    margin: 0 auto 22px;
}

.hpc-v-player-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hpc-v-player-policy {
    display: inline-block;
    margin-top: 14px;
    color: var(--hv-muted);
    font-size: 12px;
    text-decoration: underline;
}

.hpc-v-player-footer {
    margin-top: 14px;
    text-align: center;
}

.hpc-v-player-footer:empty {
    display: none;
}

/* 7. Responsive layout. Retain every video and control on smaller screens. */
@media (max-width: 1000px) {
    .hpc-v-hero {
        grid-template-columns: minmax(0, .45fr) minmax(0, .55fr);
        gap: 24px;
    }

    .hpc-v-grid {
        gap: 16px;
    }

    .hpc-v-feature {
        padding: 20px;
    }

}

@media (max-width: 780px) {
    .hpc-v {
        padding: 18px 14px 26px;
    }

    .hpc-v-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hpc-v-intro h1 {
        font-size: 54px;
    }

    .hpc-v-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .hpc-v-selected {
        gap: 16px;
    }

    .hpc-v-card-description {
        font-size: 14px;
    }

    .hpc-v-toolbar-row {
        flex-wrap: wrap;
        padding-right: 0;
    }

    .hpc-v-tabs {
        flex-basis: calc(100% - 110px);
        max-width: calc(100% - 110px);
    }

    .hpc-v-filters {
        border-left: 0;
        padding-left: 0;
        flex-basis: 100%;
    }

    .hpc-v-channel--image .hpc-v-channel-copy {
        width: 100%;
    }

    .hpc-v-channel-photo {
        opacity: .15;
    }

    .hpc-v-channel-copy {
        gap: 16px;
    }

    .hpc-v-channel {
        padding: 18px 72px 18px 18px;
    }

    .hpc-v-channel strong {
        font-size: 22px;
    }

}

/* Match the public partner-section heading at its existing mobile breakpoint. */
@media (max-width: 600px) {
    .hpc-v.hpc-v-related > h2 {
        font-size: 23px;
    }
}

@media (max-width: 480px) {
    .hpc-v-search-form {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .hpc-v-search-form .hpc-v-search {
        flex-basis: 65%;
    }

    .hpc-v-search-clear {
        flex-basis: 100%;
    }

    .hpc-v-filters {
        gap: 6px;
    }

    .hpc-v-grid {
        gap: 18px 12px;
    }

    .hpc-v-card-title {
        font-size: 16px;
    }

    .hpc-v-card-meta {
        font-size: 12px;
    }

    .hpc-v-badge {
        font-size: 13px;
        left: 6px;
        top: 6px;
        padding: 2px 5px;
    }

    .hpc-v-card--hero .hpc-v-badge,
    .hpc-v-card--selected .hpc-v-badge {
        font-size: 15px;
    }

    .hpc-v-card:not(.hpc-v-card--hero):not(.hpc-v-card--selected) .hpc-v-play {
        width: 35px;
        height: 35px;
    }

    .hpc-v-feature {
        padding: 18px 14px;
    }

    .hpc-v-selected {
        grid-template-columns: 1fr;
    }

    .hpc-v-channel-copy {
        gap: 12px;
    }

    .hpc-v-channel-icon {
        flex-basis: 44px;
        width: 44px;
        height: 33px;
    }

    .hpc-v-channel-arrow {
        display: none;
    }

    .hpc-v-channel {
        padding: 18px;
    }

    .hpc-v-dialog .hpc-v-badge {
        font-size: 13px;
    }

    .hpc-v-dialog-box {
        padding: 12px;
    }

    .hpc-v-dialog h2 {
        font-size: 20px;
    }

    .hpc-v-player-gate {
        padding: 28px 16px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hpc-v *, .hpc-v-dialog * {
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hpc-v-card:hover .hpc-v-cover-image {
        transform: none;
    }

}
