html { scroll-behavior: smooth; }
.cpv-page { --cpv-red: #a90533; --cpv-blue: #246da3; --cpv-ink: #2a333f; --cpv-line: #dfe5eb; letter-spacing: 0; background: #fff; }
.cpv-page h1, .cpv-page h2, .cpv-page h3 { letter-spacing: 0; }
.cpv-page button, .cpv-page input, .cpv-page select { font: inherit; }
.cpv-page button { cursor: pointer; }
.cpv-page button:disabled { cursor: default; opacity: .5; }
.cpv-page [hidden] { display: none !important; }
.cpv-hero { padding: 35px 0 0; overflow: hidden; }
.cpv-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; margin: 0 0 12px; }
.cpv-hero h1 { font-size: clamp(42px, 5.5vw, 68px); line-height: 1.05; }
.cpv-hero-subtitle { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin-top: 18px; }
.cpv-intro { max-width: 620px; margin-top: 22px; font-size: 16px; line-height: 1.75; }
.cpv-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 28px; }
.cpv-text-link, .cpv-help a { color: var(--cpv-red); font-weight: 700; }
.cpv-hero-visual { position: relative; padding: 25px 10px 45px; max-width: 340px; margin: 0 auto; }
.cpv-hero-visual::before { content: ''; position: absolute; top: 15px; left: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #dcefff; }
.cpv-hero-visual img { position: relative; display: block; width: 100%; height: 250px; object-fit: contain; }
.cpv-example { position: relative; display: flex; align-items: center; gap: 16px; min-height: 140px; margin: -12px -8px 0; padding: 18px 20px; background: #fff; color: var(--cpv-ink); box-shadow: 0 12px 35px rgba(42,51,63,.09); border-left: 4px solid var(--cpv-blue); text-align: left; opacity: 1; transition: opacity .25s ease; }
.cpv-example.is-changing { opacity: 0; }
.cpv-example:hover { color: var(--cpv-ink); }
.cpv-example > .mdi { flex-shrink: 0; font-size: 30px; color: var(--cpv-blue); }
.cpv-example-content { min-width: 0; }
.cpv-example-code, .cpv-example-description, .cpv-example-cta { display: block; }
.cpv-example-code { font-size: 20px; font-variant-numeric: tabular-nums; }
.cpv-example-description { margin-top: 3px; font-size: 13px; line-height: 1.5; }
.cpv-example-cta { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--cpv-blue); }
.cpv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 0; margin-top: 42px; border-top: 1px solid #dce5ed; }
.cpv-stats strong { display: block; font: 700 29px/1.2 "Red Hat Display", sans-serif; color: var(--cpv-ink); }
.cpv-stats span { display: block; margin-top: 4px; font-size: 13px; }
.cpv-stats p { display: none; margin: 0; border-left: 1px solid #dce5ed; padding-left: 30px; }
.cpv-stats p strong { font: inherit; font-weight: 700; }
.cpv-catalog { padding: 65px 0 70px; scroll-margin-top: 160px; background: #fff; }
.cpv-section-heading h2, .cpv-guide h2, .cpv-trial-band h2 { font-size: clamp(27px, 3vw, 36px); }
.cpv-section-heading > p:last-child { margin-top: 16px; }
.cpv-search-form { margin-top: 30px; }
.cpv-search-form > label { display: block; font-weight: 700; color: var(--cpv-ink); font-size: 14px; margin-bottom: 9px; }
.cpv-search-field { display: flex; align-items: center; gap: 16px; border: 1px solid #b8c2cd; padding: 8px 8px 8px 22px; border-radius: 6px; background: #fff; }
.cpv-search-field:focus-within { border-color: var(--cpv-red); box-shadow: 0 0 0 3px rgba(169,5,51,.08); }
.cpv-search-field > .mdi { font-size: 25px; color: var(--cpv-red); }
.cpv-search-field input { flex: 1; width: 0; min-width: 0; border: 0; padding: 12px 0; color: var(--cpv-ink); background: transparent; outline: 0; font-size: 16px; }
.cpv-search-field input::placeholder { color: #74808d; opacity: 1; }
.cpv-search-field .button { min-width: 110px; margin: 0; }
.cpv-workspace { margin-top: 35px; align-items: flex-start; }
#cpv-selection, #cpv-results { scroll-margin-top: 160px; }
.cpv-filters { border: 1px solid var(--cpv-line); border-radius: 6px; padding: 24px 20px; background: #fff; }
.cpv-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.cpv-filter-heading h3 { font-size: 21px; }
.cpv-text-button { color: var(--cpv-red); background: transparent; border: 0; padding: 0; text-decoration: underline; font-size: 13px !important; }
.cpv-filter + .cpv-filter { margin-top: 23px; }
.cpv-filter > label, .cpv-filter-label { display: block; margin-bottom: 9px; color: var(--cpv-ink); font-weight: 700; font-size: 12px; }
.cpv-filter select { display: block; width: 100%; min-width: 0; height: 44px; padding: 8px 30px 8px 10px; border: 1px solid #bac4ce; background: #fff; color: #444; border-radius: 3px; font-size: 13px; text-overflow: ellipsis; }
.cpv-language, .cpv-view-switch { display: inline-flex; border: 1px solid var(--cpv-line); border-radius: 4px; overflow: hidden; }
.cpv-language button, .cpv-view-switch button { border: 0; background: #fff; color: #56616d; padding: 9px 14px; font-size: 12px; }
.cpv-language button[aria-pressed="true"], .cpv-view-switch button[aria-pressed="true"] { background: var(--cpv-ink); color: #fff; }
.cpv-help { position: relative; margin-top: 22px; padding: 24px 20px; background: #f0f8ff; border-radius: 6px; }
.cpv-help > .mdi { font-size: 27px; color: var(--cpv-red); }
.cpv-help h3 { font-size: 19px; margin-top: 10px; }
.cpv-help p { font-size: 13px; margin-top: 12px; }
.cpv-help a { display: inline-block; margin-top: 15px; font-size: 13px; }
.cpv-help a::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.cpv-results-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.cpv-results-toolbar p { margin: 0; color: #56616d; font-size: 13px; }
.cpv-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.cpv-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 14px; border: 1px solid var(--cpv-line); border-radius: 6px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cpv-card:hover { border-color: var(--cpv-blue); box-shadow: 0 6px 18px rgba(36,109,163,.1); }
.cpv-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; }
.cpv-code { color: var(--cpv-red); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cpv-level-badge { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #65717d; padding: 3px 7px; background: #f2f5f8; border-radius: 3px; }
.cpv-card .cpv-card-meta { gap: 6px 8px; }
.cpv-card .cpv-code { font-size: 14px; }
.cpv-card .cpv-level-badge { padding: 2px 5px; font-size: 9px; }
.cpv-card h3 { font: 700 16px/1.35 "Red Hat Display", sans-serif; margin: 8px 0 0; }
.cpv-card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; width: 100%; margin-top: auto; padding-top: 12px; }
.cpv-card p { margin: 0; font-size: 11px; line-height: 1.4; color: #687480; }
.cpv-card button { padding: 0; color: var(--cpv-red); font-weight: 700; background: transparent; border: 0; text-align: left; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.cpv-card button::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.cpv-selection-box { padding: 25px; background: #f0f8ff; border: 1px solid #dce5ed; border-top: 3px solid var(--cpv-blue); border-radius: 5px; margin-bottom: 25px; }
.cpv-selection-reset { display: block; margin: 0 0 20px; }
.cpv-selection-box h3 { font-size: clamp(20px,2.4vw,27px); line-height: 1.3; margin: 12px 0; }
.cpv-selection-box p { font-size: 14px; margin-top: 12px; }
.cpv-selection-box .button { margin-top: 22px; font-size: 13px; padding: 14px 22px; }
.cpv-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; font-size: 13px; }
.cpv-pagination button, .cpv-pagination a { border: 1px solid var(--cpv-line); background: #fff; color: var(--cpv-red); border-radius: 4px; padding: 9px 15px; }
.cpv-source { font-size: 11px; color: #687480; margin-top: 30px; line-height: 1.75; }
.cpv-source a { text-decoration: underline; color: #687480; }
.cpv-empty { border: 1px dashed #bac4ce; padding: 35px 25px; border-radius: 6px; text-align: center; }
.cpv-empty h3 { font-size: 23px; }
.cpv-empty p { margin: 14px 0 20px; }
.cpv-tree { border: 1px solid var(--cpv-line); border-radius: 5px; overflow: hidden; }
.cpv-tree-node + .cpv-tree-node { border-top: 1px solid var(--cpv-line); }
.cpv-tree-node summary { display: flex; align-items: flex-start; gap: 10px 15px; padding: 18px; cursor: pointer; list-style: none; }
.cpv-tree-node summary::-webkit-details-marker { display: none; }
.cpv-tree-node summary::before { content: '+'; color: var(--cpv-red); font-size: 19px; font-weight: 700; line-height: 24px; }
.cpv-tree-node[open] > summary::before { content: '−'; }
.cpv-tree-label { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.cpv-tree-label .cpv-code { display: block; margin-bottom: 4px; font-size: 14px; }
.cpv-tree-children { margin-left: 18px; border-left: 2px solid #e3e8ed; }
.cpv-tree-action { background: #f7fafc; padding: 12px 18px 12px 35px; }
.cpv-tree-action button { color: var(--cpv-red); background: none; border: 0; padding: 0; text-align: left; font-weight: 700; font-size: 12px; }
.cpv-guide { padding: 60px 0; }
.cpv-guide p { line-height: 1.75; margin-top: 0; }
.cpv-faq details { border-bottom: 1px solid #d4dfe8; padding: 18px 0; }
.cpv-faq details:first-child { padding-top: 0; }
.cpv-faq summary { font: 700 19px/1.4 "Red Hat Display",sans-serif; color: var(--cpv-ink); cursor: pointer; }
.cpv-faq details p { font-size: 14px; margin-top: 15px; }
.cpv-trial-band { background: #fff; padding: 60px 0; }
.cpv-trial-band .cpv-eyebrow { color: var(--cpv-red); }
.cpv-trial-band p:last-child { max-width: 680px; margin-top: 18px; line-height: 1.75; }
.cpv-trial-band .button { padding-left: 23px; padding-right: 23px; }
@media (min-width: 1200px) {
    .cpv-result-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 992px) {
    .cpv-stats { grid-template-columns: repeat(3, 1fr) 2fr; }
    .cpv-stats p { display: block; }
    .cpv-hero { padding-top: 40px; }
}
@media (max-width: 991.98px) {
    .cpv-hero-visual { max-width: 260px; padding-bottom: 10px; }
    .cpv-hero-visual img { height: 180px; }
    .cpv-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
    .cpv-filter-heading { grid-column: 1/-1; margin: 0; }
    .cpv-filter + .cpv-filter { margin-top: 0; }
    .cpv-help { display: none; }
}
@media (max-width: 575.98px) {
    .cpv-hero { padding-top: 25px; }
    .cpv-intro { font-size: 15px; }
    .cpv-hero-actions { align-items: flex-start; flex-direction: column; }
    .cpv-hero-visual { display: none; }
    .cpv-stats { gap: 10px; margin-top: 30px; }
    .cpv-stats strong { font-size: 25px; }
    .cpv-stats span { font-size: 11px; }
    .cpv-catalog, .cpv-guide, .cpv-trial-band { padding-top: 42px; padding-bottom: 42px; }
    .cpv-search-field { gap: 8px; padding-left: 10px; }
    .cpv-search-field > .mdi { display: none; }
    .cpv-search-field input { font-size: 14px; }
    .cpv-search-field .button { min-width: 65px; padding: 12px; }
    .cpv-filters { gap: 18px 12px; padding: 20px 15px; }
    .cpv-filter select { font-size: 12px; }
    .cpv-result-grid { grid-template-columns: 1fr; }
    .cpv-selection-box { padding: 20px; }
    .cpv-view-switch button { padding: 9px 12px; }
}
