/* =========================================================
   HPE Design System tokens
   Source: https://design-system.hpe.design/design-tokens
   ========================================================= */

:root {
    /* Brand / primary — HPE green (used for interactive & active states) */
    --hpe-green: #01a982;          /* color.decorative.brand */
    --hpe-green-strong: #068667;   /* color.background.primary.strong (selected/active) */
    --hpe-green-hover: #006750;    /* primary/selected hover, color.border.selected */

    /* Neutrals — midnight charcoal for chrome & headings on white */
    --hpe-midnight: #292d3a;       /* color.background.neutral.xstrong / focus */
    --hpe-midnight-hover: #3e4550; /* color.background.neutral.xstrong.hover */
    --hpe-bg-back: #f7f7f7;        /* color.background.back */
    --hpe-border-default: #b1b9be; /* color.border.default */

    /* Product imagery — soft charcoal drop shadow to anchor products on
       neutral backgrounds (HPE brand rule). Reused by every logo.png. */
    --hpe-product-shadow: drop-shadow(0 4px 10px rgba(41, 45, 58, 0.22));
    --hpe-product-bg: #f7f7f7;      /* neutral soft-grey backdrop */

    /* Base typeface — HPE Graphik across all pages */
    --md-text-font: "HPE Graphik", "Graphik", "Metric", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Drive Material's own font variable so every component (nav, sidebar,
       search, tables, footer) inherits Graphik — theme has font: false. */
    --md-text-font-family: var(--md-text-font);
}

/* mkdocs.yml sets palette primary/accent to "custom" — without this, Material
   falls back to its default indigo, which showed up as the active/hover link
   color in the left-hand nav (non-brand color flagged by marketing). This
   binds Material's own color variables to HPE tokens instead. */
[data-md-color-primary="custom"] {
    --md-primary-fg-color: var(--hpe-midnight);
    --md-primary-fg-color--light: var(--hpe-midnight-hover);
    --md-primary-fg-color--dark: var(--hpe-midnight);
    --md-primary-bg-color: #ffffff;
    --md-primary-bg-color--light: #ffffff;
}

[data-md-color-accent="custom"] {
    --md-accent-fg-color: var(--hpe-green);
    --md-accent-fg-color--transparent: rgba(1, 169, 130, 0.1);
    --md-accent-bg-color: #ffffff;
    --md-accent-bg-color--light: #ffffff;
}


/* =========================================================
   Fonts
   ========================================================= */

/* HPE Graphik — body/UI typeface. Drop the licensed woff2/woff files into
   ./fonts/ using these names; the stack falls back gracefully until then. */
@font-face {
    font-family: 'HPE Graphik';
    src: url('./fonts/HPEGraphik-Regular.woff2') format('woff2'),
         url('./fonts/HPEGraphik-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HPE Graphik';
    src: url('./fonts/HPEGraphik-Medium.woff2') format('woff2'),
         url('./fonts/HPEGraphik-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HPE Graphik';
    src: url('./fonts/HPEGraphik-Bold.woff2') format('woff2'),
         url('./fonts/HPEGraphik-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HPE Graphik XXCondensed';
    src: url('./fonts/HPEGraphikXXCondensed.woff2') format('woff2'),
         url('./fonts/HPEGraphikXXCondensed.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Apply HPE Graphik site-wide (theme has font: false, so set it explicitly) */
body,
input,
button,
.md-typeset,
.hfws-header,
.hfws-footer {
    font-family: var(--md-text-font);
}


/* =========================================================
   Lightbox & Images
   ========================================================= */

.md-typeset a.glightbox {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
}

.md-typeset a.glightbox::after {
    content: "\1F50D";
    /* 🔍 Unicode magnifying glass icon */
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 2px #000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.md-typeset a.glightbox:hover::after {
    opacity: 1;
}

/* ✅ More specific image rule for MkDocs' .md-typeset content
   (redundant with the above "img", but ensures priority inside MkDocs) */
.md-typeset img[width] {
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.md-typeset img {
    max-width: 80% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.md-typeset figcaption {
    margin: 0em auto !important;
    text-align: center !important;
}

/* Product logos placed in article content (any *logo.png) get the brand
   drop shadow on a neutral soft-grey backdrop, per HPE imagery rule. */
.md-typeset img[src*="logo.png"] {
    background-color: var(--hpe-product-bg);
    filter: var(--hpe-product-shadow);
    border-radius: 6px;
}


/* =========================================================
   Tables
   ========================================================= */

/* ✅ Center ALL Markdown tables */
.md-typeset .md-typeset__table {
    display: flex;
    /* wrapper adapts to table size */
    justify-content: center;
    /* centers table horizontally */
}

.md-typeset .md-typeset__table table {
    width: max-content;
    /* table shrinks to fit its content */
    max-width: 95%;
    /* still responsive, won’t overflow */
    margin: 0 auto;
    /* fallback centering */
}

.md-typeset table {
    border-collapse: collapse;
    border: 1px solid var(--md-default-fg-color--lighter);
}

.md-typeset table th,
.md-typeset table td {
    border: 1px solid var(--md-default-fg-color--lighter);
}

/* Table header styling */
.md-typeset table thead th {
    background-color: var(--hpe-midnight) !important;
    color: white !important;
    text-transform: uppercase !important;
    font-size: 0.7rem;
    text-align: center;
}

/* Table body styling */
.md-typeset table tbody tr {
    font-size: 0.7rem;
}

.md-typeset caption {
    margin: 0em auto !important;
    text-align: center !important;
    caption-side: top;
}

/* =========================================================
   Layout & Grid
   ========================================================= */

/* Only apply fixed sidebar widths on desktop screens. Fixed px (not rem) so
   they don't balloon on ultra-wide screens where Material scales up the root
   font-size, which was starving the article text column of width. */
@media screen and (min-width: 76.25em) {
    .md-sidebar {
        width: 240px;
    }

    .md-nav--primary .md-nav__list {
        width: 224px;
    }
}

.md-content__inner {
    margin-left: 2.5rem !important;
    margin-right: 2.5rem !important;
}

/* Pages with no navigation/toc sidebars (index.md, articles/menu/main.md —
   both marked by .banner-section) use the full page width instead. */
body:has(.banner-section) .md-content__inner {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
}

/* ✅ Adjust page grid (wider container than default MkDocs Material) */
.md-grid {
    max-width: 1600px;
}


/* =========================================================
   Typography
   ========================================================= */

.md-typeset h1 {
    margin: 0 0 0.25em !important;
    font-weight: 500 !important;
    text-align: left !important;
    font-size: 68px;
    letter-spacing: -0.8px;
    line-height: 74px;
}

.md-typeset h2 {
    margin: 0.2em 0 .2em !important;
    font-weight: 500 !important;
    font-size: clamp(22px, 3vw, 34px);
}

.md-typeset h3 {
    margin: 0.1em 0 .1em !important;
    font-weight: 500 !important;
    font-size: clamp(18px, 2.5vw, 24px);
}

/* Author/date byline ("**Name - date**") directly under the article title */
.md-typeset h1 + p strong {
    font-weight: 500;
}

/* Headings on a white background use HPE midnight */
[data-md-color-scheme="default"] .md-typeset h1,
[data-md-color-scheme="default"] .md-typeset h2,
[data-md-color-scheme="default"] .md-typeset h3,
[data-md-color-scheme="default"] .md-typeset h4 {
    color: var(--hpe-midnight) !important;
}

.md-typeset ul li {
    margin-bottom: .0 !important;
}


/* =========================================================
   Header / Navigation / Tabs
   ========================================================= */

/* Header bar */
[data-md-color-scheme="default"] .md-header {
    background-color: #292d3a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* HFWS now provides the microsite title, top navigation and search in its
   own header (via HPEHF_CFG), so Material's redundant header row is hidden on
   desktop. It stays visible below this breakpoint, where it carries the
   drawer toggle for the collapsed sidebar navigation. */
@media screen and (min-width: 76.234375em) {
    .md-header {
        display: none;
    }
}

[data-md-color-scheme="default"] .md-header__inner {
    background-color: transparent !important;
}

.md-header .md-logo {
    padding: 0.3rem 0;
    /* No site logo — hide Material's default fallback icon */
    display: none;
}

/* Site title in header */
.md-header .md-header__title {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.82rem;
    text-transform: uppercase;
}

/* Search bar styling */
.md-search__input {
    border-radius: 6px !important;
    font-size: 0.8rem !important;
}

[data-md-color-scheme="default"] .md-search__input {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-md-color-scheme="default"] .md-search__input:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--hpe-green) !important;
}

[data-md-color-scheme="default"] .md-search__input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Navigation tabs bar */
[data-md-color-scheme="default"] .md-tabs {
    background-color: #292D3A !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Tab links */
.md-tabs__link {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    padding: 0 1.2em !important;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
    border-bottom: 2px solid transparent;
}

/* Active tab */
[data-md-color-scheme="default"] .md-tabs__item--active > .md-tabs__link {
    color: white !important;
    opacity: 1;
    border-bottom-color: var(--hpe-green) !important;
}

/* Hover state on tab links */
[data-md-color-scheme="default"] .md-tabs__link:hover {
    color: white !important;
    opacity: 1;
    border-bottom-color: rgba(1, 169, 130, 0.5) !important;
}

/* Header icons (theme toggle, repo, etc.) */
.md-header__button {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.md-header__button:hover {
    opacity: 1;
}

/* Dark theme (slate) header and tabs */
[data-md-color-scheme="slate"] .md-header {
    background-color: #292d3a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

[data-md-color-scheme="slate"] .md-header__inner {
    background-color: transparent !important;
}

[data-md-color-scheme="slate"] .md-tabs {
    background-color: #292d3a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-md-color-scheme="slate"] .md-search__input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
}

[data-md-color-scheme="slate"] .md-search__input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-tabs__item--active > .md-tabs__link {
    color: white !important;
    opacity: 1;
    border-bottom-color: var(--hpe-green) !important;
}

[data-md-color-scheme="slate"] .md-tabs__link:hover {
    color: white !important;
    opacity: 1;
    border-bottom-color: rgba(1, 169, 130, 0.5) !important;
}


/* =========================================================
   Sidebar Navigation Polish
   ========================================================= */

/* Sidebar nav items */
.md-nav__link {
    font-size: 0.72rem;
    transition: color 0.15s ease, background-color 0.15s ease;
    border-radius: 4px;
    padding: 0.35em 0.6em !important;
}

.md-nav__link:hover {
    background-color: rgba(1, 169, 130, 0.08);
}

[data-md-color-scheme="slate"] .md-nav__link:hover {
    background-color: rgba(1, 169, 130, 0.08);
}

/* All sidebar/TOC hover links: #01a982 (accent) fails accessibility contrast ratios.
   Matches Material's own [for]/[href] selectors so specificity ties resolve to this rule. */
.md-nav__link[for]:hover,
.md-nav__link[for]:focus,
.md-nav__link[href]:hover,
.md-nav__link[href]:focus {
    color: #006750 !important;
}

/* Active sidebar link indicator: #01a982 (accent) fails accessibility contrast ratios */
.md-nav__link--active {
    font-weight: 500 !important;
    color: var(--hpe-green-hover) !important;
}

/* Section labels in sidebar (Sentence case, not UPPERCASE) */
.md-nav__item--nested > .md-nav__link {
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

/* Do not repeat the hpen.png logo in the navigation drawer / subnav */
.md-nav__button.md-logo,
.md-nav--primary .md-nav__title .md-logo {
    display: none !important;
}


/* =========================================================
   Mobile / Responsive
   ========================================================= */

/* Tablets and small screens */
@media screen and (max-width: 960px) {
    .md-content__inner {
        margin-left: 1.5rem !important;
        margin-right: 1.5rem !important;
    }

    .md-typeset h1 {
        font-size: 36px;
    }

    .md-typeset h2 {
        font-size: 26px;
    }

    .md-typeset h3 {
        font-size: 20px;
    }

}

/* Phones */
@media screen and (max-width: 600px) {
    .md-content__inner {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }

    .md-typeset h1 {
        font-size: 28px;
    }

    .md-typeset h2 {
        font-size: 22px;
    }

    .md-typeset h3 {
        font-size: 18px;
    }

    .md-typeset img {
        max-width: 100% !important;
    }

    .md-typeset img[width] {
        max-width: 100% !important;
    }
}


/* =========================================================
   Footer
   ========================================================= */

/* ✅ Footer custom styling */
.mdx-content__footer {
    margin-top: 20px;
    text-align: center;
}

.mdx-content__footer a {
    display: inline-block;
    transition: transform 250ms cubic-bezier(0.1, 0.7, 0.1, 1), color 125ms;
}

.mdx-content__footer a:focus,
.mdx-content__footer a:hover {
    transform: scale(1.2);
}

.mdx-content__footer hr {
    display: inline-block;
    width: 40px;
    margin: 16px;
    vertical-align: middle;
    background-color: currentColor;
    border: none;
}


/* =========================================================
   Buttons
   ========================================================= */

/* ✅ Custom pill-shaped button */
.custom-button {
    display: inline-block;
    padding: 0.6em 1.2em;
    background-color: var(--hpe-midnight);
    color: white !important;
    border-radius: 999px;
    /* makes it pill-shaped */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* ✅ Font Awesome icons inside custom buttons */
.custom-button svg.svg-inline--fa {
    width: 2em;
    height: 2em;
    vertical-align: middle;
    margin-right: 0.4em;
    transform: translateY(2px);
    /* tweak alignment */
    color: white;
    /* ensures icons are white */
}

/* ✅ Hover effect on custom button */
.custom-button:hover {
    background-color: var(--hpe-midnight-hover);
}

/* ✅ Dark mode button color (same as default here) */
[data-md-color-scheme="slate"] .custom-button {
    background-color: var(--hpe-midnight);
}


/* =========================================================
   Home Banner (Landing Page)
   ========================================================= */

/* Hide the auto-generated page title when banner-section is present */
.md-typeset:has(.banner-section) > h1,
.md-content:has(.banner-section) h1:first-of-type,
.md-typeset:has(.banner-section) h1,
article:has(.banner-section) h1 {
    display: none !important;
}

/* On home page, always show site title in header (prevent page title takeover) */
body:has(.banner-section) .md-header__topic:nth-child(2) {
    display: none !important;
}
body:has(.banner-section) .md-header__topic:first-child {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Full-bleed dark banner (same background color as the reference HPE page,
   independent of the site's own light/slate palette toggle). The negative
   top margin cancels Material's default spacing above the content
   (.md-main__inner margin + .md-content__inner padding/before pseudo-element)
   so the banner sits flush under the nav bar with no white gap. */
.banner-section {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-top: -2.5rem;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: center;
    min-height: 26.64vh;
    /* Grows past 6vw on ultra-wide screens so the content lines up with .md-grid's 1600px max-width */
    padding: 3rem max(6vw, calc((100vw - 1600px) / 2));
    background: radial-gradient(circle at 85% 50%, rgba(1, 169, 130, 0.35) 0%, rgba(29, 31, 39, 0) 45%), #1d1f27;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero banner (index.md) only — the compact All Articles banner keeps the
   plain dark gradient above. intro-techpost.png is the full-bleed backdrop;
   height scales fluidly with viewport width so it works at any window size. */
.banner-section:not(.banner-section--compact) {
    min-height: clamp(240px, 31.5vw, 420px);
    background-image: url('../images/intro-techpost.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-content {
    max-width: 640px;
    flex-shrink: 0;
}

.banner-eyebrow {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #e6e8e9;
    margin: 0 0 1.25rem;
}

.banner-title {
    font-family: 'HPE Graphik XXCondensed';
    font-weight: 700;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1.5rem;
}

.banner-description {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
    color: #e6e8e9;
    margin: 0 0 2rem;
    max-width: 560px;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    background-color: #ffffff;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.banner-cta:hover {
    transform: translateY(-2px);
    background-color: #f0f0f0;
    color: #333333;
}

@media (max-width: 768px) {
    .banner-section {
        padding: 2.5rem 1.5rem;
    }

    .banner-section:not(.banner-section--compact) {
        background-image: url('../images/intro-techpost.png');
    }

    .banner-content {
        max-width: 100%;
        text-align: center;
    }
}

/* Half-height banner variant for secondary pages (e.g. All Articles) */
.banner-section--compact {
    min-height: 11.52vh;
    padding: 2rem max(6vw, calc((100vw - 1600px) / 2));
}

/* Heading + filter input row (All Articles page) */
.articles-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
}

.articles-toolbar .latest-heading {
    margin: 0;
}

.articles-toolbar .card-filter-container {
    max-width: 320px;
    flex: 1 1 260px;
    padding: 0;
    margin: 0;
}

/* Active category deep-link (?category=) shown as a removable chip */
.category-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--hpe-midnight);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
}

.category-filter-chip .category-filter-clear {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    font-size: 1rem;
    opacity: 0.85;
}

.category-filter-chip .category-filter-clear:hover {
    opacity: 1;
}

.card-grid-empty {
    color: var(--hpe-midnight);
    font-size: 0.95rem;
    opacity: 0.75;
    margin: 1rem 0 2rem;
}

/* =========================================================
   Latest Section
   ========================================================= */

.latest-section {
    max-width: 1400px;
    margin-inline: auto;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

/* Matches the reference page's h2 (font-size/weight/letter-spacing/color) */
.latest-heading {
    font-size: 2.44rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--hpe-midnight);
    margin: 0 0 3rem;
    display: block;
    text-align: left;
}

[data-md-color-scheme="slate"] .latest-heading {
    color: var(--hpe-midnight);
}

/* =========================================================
   Latest Articles Grid (Home page) — vertical cards with a top photo,
   category label, title and description (see .card / .card-category /
   .card-description below; markup is cloned from the All Articles page).
   ========================================================= */

.latest-grid {
    display: grid;
    text-align: left;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .latest-grid .card {
        text-align: left;
    }
}

/* =========================================================
   Cards
   ========================================================= */

/* ✅ Card filter input */
.card-filter-container {
    max-width: 1400px;
    margin-inline: auto;
    padding: 1rem 0 0;
}

.card-filter-input {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
    color: var(--hpe-midnight);
    box-sizing: border-box;
}

.card-filter-input:focus {
    border-color: var(--hpe-green);
    box-shadow: 0 0 0 3px rgba(1, 169, 130, 0.15);
}

[data-md-color-scheme="slate"] .card-filter-input {
    background-color: #1e2433;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f0f2f5;
}

[data-md-color-scheme="slate"] .card-filter-input:focus {
    border-color: var(--hpe-green);
    box-shadow: 0 0 0 3px rgba(1, 169, 130, 0.15);
}

/* ✅ Card grid layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.75rem;
    max-width: 1400px;
    margin-inline: auto;
    padding: 1rem 0;
}

/* ✅ Card component — magazine style */
.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    background: #F7F7F7;
    border: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* Dark mode */
[data-md-color-scheme="slate"] .card {
    background-color: #1e2433;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card:hover {
    background: var(--Card-Hover, conic-gradient(
        from -14deg at -30% 96%,
        var(--color-background-card, rgba(247, 247, 247, 0.50)) 83.0151629447937deg,
        var(--color-decorative-green, rgba(5, 204, 147, 0.50)) 163.64784836769104deg,
        var(--color-background-card, rgba(247, 247, 247, 0.50)) 192.42680311203003deg
    ));
}

[data-md-color-scheme="slate"] .card:hover {
    background: var(--Card-Hover, conic-gradient(
        from -14deg at -30% 96%,
        var(--color-background-card, rgba(247, 247, 247, 0.50)) 83.0151629447937deg,
        var(--color-decorative-green, rgba(5, 204, 147, 0.50)) 163.64784836769104deg,
        var(--color-background-card, rgba(247, 247, 247, 0.50)) 192.42680311203003deg
    ));
}

/* ✅ Card cover image — full-bleed product photo, no logo backdrop/shadow */
.card-icon {
    width: 100%;
    height: 200px;
    margin: 0;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    max-width: none !important;
    filter: none !important;
}

.card:hover .card-icon {
    transform: scale(1.04);
}

/* ✅ Card text area */
.card-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.25rem 1.5rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ✅ Category / eyebrow label */
.card-category {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    letter-spacing: 0.01em;
}

[data-md-color-scheme="slate"] .card-category {
    color: #94a3b8;
}

/* ✅ Title */
.card-title {
    color: var(--hpe-midnight);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-md-color-scheme="slate"] .card-title {
    color: #f0f2f5;
}

/* ✅ Description */
.card-description {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-md-color-scheme="slate"] .card-description {
    color: #b7c0cc;
}

/* ✅ Subtitle / Author */
.card-subtitle {
    font-size: 0.72rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    letter-spacing: 0.01em;
}

[data-md-color-scheme="slate"] .card-subtitle {
    color: #94a3b8;
}

/* ✅ Responsive: tablets */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
        gap: 1.25rem;
    }

    .card-icon {
        height: 170px;
    }
}

/* ✅ Responsive: phones */
@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-icon {
        height: 140px;
    }

    .card-text {
        padding: 0.85rem 1rem 1rem;
    }
}


/* =========================================================
   Search results page (docs/search-results.md)
   ========================================================= */

.tp-search-results-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.tp-search-results-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.tp-search-results-item a {
    font-size: 1.05rem;
    font-weight: 600;
}

.tp-search-results-item p {
    margin: 0.4rem 0 0;
    color: var(--md-default-fg-color--light);
}

.tp-search-results-item mark {
    background-color: rgba(1, 169, 130, 0.25);
    color: inherit;
}
