/**
 * File: assets/css/frontend/blog/home.css
 * Purpose: Styles the dedicated premium HyperDAF Blog homepage and discovery sections.
 * Scope: Canonical HyperDAF Blog domain owned by HyperDAF Pro; commerce data and mutations remain HyperDAF Engine-owned.
 * Package: HyperDAF Pro
 */
.hdf-blog-home *,
.hdf-blog-home *::before,
.hdf-blog-home *::after {
    box-sizing: border-box;
}
.hdf-blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(25rem, .86fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: var(--hdf-blog-section-gap, 2rem);
    padding: var(--hdf-blog-hero-padding-block, 1.25rem) var(--hdf-blog-hero-padding-inline, 2.5rem);
    border: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    border-radius: var(--hdf-blog-radius, var(--hdf-radius-lg));
    background: var(--hdf-blog-hero-surface, var(--hdf-color-surface-subtle));
}
.hdf-blog-hero__copy {
    align-self: center;
}
.hdf-blog-hero__copy h1 {
    max-width: none;
    margin: 0;
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    font-size: clamp(2.1rem, 3.05vw, var(--hdf-blog-hero-title-size, 3rem));
    line-height: var(--hdf-blog-hero-title-line-height, 1.06);
    letter-spacing: -0.03em;
}
.hdf-blog-hero__copy h1 > span {
    display: block;
    white-space: nowrap;
}
.hdf-blog-hero__copy > p:not(.hdf-blog-eyebrow) {
    max-width: 42rem;
    margin: 1rem 0 0;
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    line-height: 1.65;
}
.hdf-blog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.hdf-blog-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.hdf-blog-stats span {
    display: grid;
    gap: 0.15rem;
    padding-right: 0.75rem;
    border-right: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    font-size: 0.6875rem;
}
.hdf-blog-stats span:last-child {
    border-right: 0;
}
.hdf-blog-stats strong {
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    font-size: 0.875rem;
}
.hdf-blog-hero__feature {
    min-width: 0;
    justify-self: end;
    width: min(100%, 34rem);
}
.hdf-blog-featured-article {
    display: grid;
    grid-template-rows: minmax(11rem, 12.5rem) 1fr;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    border-radius: var(--hdf-blog-card-radius, var(--hdf-radius-md));
    background: var(--hdf-blog-surface, var(--hdf-color-surface));
}
.hdf-blog-featured-article.no-media {
    grid-template-rows: 1fr;
}
.hdf-blog-featured-article__media {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 22%, var(--hdf-color-surface) 78%) 0%, color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 8%, var(--hdf-color-surface-subtle) 92%) 100%);
}
.hdf-blog-featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hdf-blog-featured-article__media-badge {
    position: absolute;
    top: .9rem;
    left: .9rem;
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: .28rem .72rem;
    border-radius: var(--hdf-radius-pill);
    background: color-mix(in srgb, var(--hdf-color-surface) 88%, transparent);
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hdf-blog-featured-article__body {
    display: grid;
    align-content: start;
    gap: .85rem;
    min-width: 0;
    padding: 1.15rem 1.15rem 1rem;
}
.hdf-blog-featured-article__intro {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: var(--hdf-border-width-default) solid color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 14%, var(--hdf-blog-border, var(--hdf-color-border)) 86%);
    border-radius: calc(var(--hdf-blog-card-radius, var(--hdf-radius-md)) - 4px);
    background: linear-gradient(135deg, color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 16%, var(--hdf-color-surface) 84%) 0%, color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 6%, var(--hdf-color-surface-subtle) 94%) 100%);
    isolation: isolate;
    overflow: hidden;
}
.hdf-blog-featured-article__intro-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .95rem;
    background: color-mix(in srgb, var(--hdf-color-surface) 84%, transparent);
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
}
.hdf-blog-featured-article__intro-icon .hdf-icon {
    width: 1.35rem;
    height: 1.35rem;
}
.hdf-blog-featured-article__intro-copy {
    display: grid;
    gap: .3rem;
    min-width: 0;
}
.hdf-blog-featured-article__intro-copy small,
.hdf-blog-featured-article__intro-copy em {
    font-style: normal;
    color: color-mix(in srgb, var(--hdf-blog-text, var(--hdf-color-text-primary)) 72%, transparent);
    font-size: .75rem;
}
.hdf-blog-featured-article__intro-copy strong {
    max-width: 18ch;
    font-size: 1.16rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hdf-blog-featured-article__intro-shape {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hdf-color-surface) 42%, transparent);
    pointer-events: none;
}
.hdf-blog-featured-article__intro-shape--one {
    width: 7rem;
    height: 7rem;
    right: -1.8rem;
    top: -1.5rem;
}
.hdf-blog-featured-article__intro-shape--two {
    width: 4.65rem;
    height: 4.65rem;
    right: 1rem;
    bottom: -1.4rem;
}
.hdf-blog-featured-article__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.hdf-blog-featured-article__eyebrow,
.hdf-blog-featured-article__category {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.22rem 0.65rem;
    border-radius: var(--hdf-radius-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hdf-blog-featured-article__eyebrow {
    background: color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 12%, var(--hdf-color-surface) 88%);
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
}
.hdf-blog-featured-article__category {
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    background: var(--hdf-color-surface-subtle);
}
.hdf-blog-featured-article h2 {
    margin: 0;
    font-size: clamp(1.22rem, 1.8vw, 1.48rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}
.hdf-blog-featured-article h2 a {
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    text-decoration: none;
}
.hdf-blog-featured-article p {
    margin: 0;
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    font-size: .875rem;
    line-height: 1.62;
}
.hdf-blog-featured-article .hdf-blog-meta {
    margin-top: 0;
}
.hdf-blog-featured-article__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: .15rem;
    margin-top: auto;
}
.hdf-blog-featured-article__cta {
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}
.hdf-blog-featured-article__cta:hover,
.hdf-blog-featured-article__cta:focus-visible,
.hdf-blog-featured-article h2 a:hover,
.hdf-blog-featured-article h2 a:focus-visible {
    color: var(--hdf-blog-accent-hover, var(--hdf-color-primary-hover));
}
.hdf-blog-home,
.hdf-blog-home__layout,
.hdf-blog-home__main,
.hdf-blog-sidebar,
.hdf-blog-newsletter,
.hdf-blog-newsletter form,
.hdf-blog-newsletter__content,
.hdf-blog-newsletter__content > *,
.hdf-blog-hero,
.hdf-blog-hero > *,
.hdf-blog-featured-grid,
.hdf-blog-latest-grid,
.hdf-blog-resource-grid,
.hdf-blog-contributors,
.hdf-blog-popular,
.hdf-blog-topics,
.hdf-blog-topics a {
    min-width: 0;
}
.hdf-blog-home {
    overflow-x: clip;
}
.hdf-blog-topics {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--hdf-blog-section-gap, 2rem);
    padding: 0.75rem;
    overflow-x: auto;
    border: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    border-radius: var(--hdf-blog-radius, var(--hdf-radius-lg));
    background: var(--hdf-blog-surface, var(--hdf-color-surface));
}
.hdf-blog-topics a {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    border-radius: var(--hdf-radius-pill);
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    font-size: 0.75rem;
    text-decoration: none;
}
.hdf-blog-topics a.is-active,
.hdf-blog-topics a:hover {
    border-color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    background: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    color: var(--hdf-color-text-inverse);
}
.hdf-blog-home__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, var(--hdf-blog-sidebar-width, 20rem));
    gap: var(--hdf-blog-section-gap, 2rem);
    align-items: start;
}
.hdf-blog-home__main {
    display: grid;
    gap: var(--hdf-blog-section-gap, 2rem);
    min-width: 0;
}
.hdf-blog-featured-grid,
.hdf-blog-latest-grid {
    display: grid;
    gap: var(--hdf-blog-card-gap, 1.25rem);
    align-items: stretch;
}
.hdf-blog-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hdf-blog-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hdf-blog-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--hdf-blog-card-gap, 1.25rem);
}
.hdf-blog-resource {
    display: grid;
    gap: 0.5rem;
    padding: 1.25rem;
    border: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    border-radius: var(--hdf-blog-card-radius, var(--hdf-radius-md));
    background: var(--hdf-blog-surface, var(--hdf-color-surface));
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    text-decoration: none;
}
.hdf-blog-resource > span {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: var(--hdf-radius-pill);
    background: var(--hdf-blog-surface-soft, var(--hdf-color-surface-selected));
    color: var(--hdf-blog-accent-hover, var(--hdf-color-primary-hover));
}
.hdf-blog-resource small {
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    line-height: 1.5;
}
.hdf-blog-resource em {
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 650;
}
.hdf-blog-popular {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    border-radius: var(--hdf-blog-card-radius, var(--hdf-radius-md));
    background: var(--hdf-blog-surface, var(--hdf-color-surface));
    list-style: none;
}
.hdf-blog-popular li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    padding: 1rem;
    border-right: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
}
.hdf-blog-popular li:last-child {
    border-right: 0;
}
.hdf-blog-popular li > span {
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    font-size: 1.25rem;
    font-weight: 700;
}
.hdf-blog-popular a {
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}
.hdf-blog-popular small {
    grid-column: 2;
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    font-size: 0.6875rem;
}
.hdf-blog-contributors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
    gap: var(--hdf-blog-card-gap, 1.25rem);
}
.hdf-blog-contributors > a {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
    overflow: hidden;
    border: var(--hdf-border-width-default) solid var(--hdf-blog-border, var(--hdf-color-border));
    border-radius: var(--hdf-blog-card-radius, var(--hdf-radius-md));
    background: var(--hdf-blog-surface, var(--hdf-color-surface));
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}
.hdf-blog-contributors > a:hover,
.hdf-blog-contributors > a:focus-visible {
    border-color: color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 42%, var(--hdf-blog-border, var(--hdf-color-border)));
    transform: translateY(-1px);
}
.hdf-blog-contributors > a > i {
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    font-size: 0.875rem;
    font-style: normal;
}
.hdf-blog-contributors span {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}
.hdf-blog-contributors strong {
    display: block;
    min-width: 0;
    color: var(--hdf-blog-text, var(--hdf-color-text-primary));
    font-size: 0.8125rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.hdf-blog-contributors small,
.hdf-blog-contributors em {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--hdf-blog-muted, var(--hdf-color-text-muted));
    font-size: 0.6875rem;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hdf-blog-contributors em {
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    font-weight: 650;
}

.hdf-blog-author-avatar {
    position: relative;
    display: inline-grid;
    width: var(--hdf-blog-author-avatar-size, 3.5rem);
    height: var(--hdf-blog-author-avatar-size, 3.5rem);
    flex: 0 0 var(--hdf-blog-author-avatar-size, 3.5rem);
    place-items: center;
    overflow: visible;
    border-radius: var(--hdf-radius-pill);
}
.hdf-blog-author-avatar.has-photo {
    overflow: hidden;
    border: var(--hdf-border-width-default) solid color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 28%, var(--hdf-blog-border, var(--hdf-color-border)));
    background: var(--hdf-blog-surface-soft, var(--hdf-color-surface-selected));
}
.hdf-blog-author-avatar.has-photo img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.hdf-blog-author-avatar.is-fallback {
    border: var(--hdf-border-width-default) solid color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 32%, var(--hdf-blog-border, var(--hdf-color-border)));
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--hdf-color-surface) 92%, transparent) 0 14%, transparent 15%),
        linear-gradient(145deg, var(--hdf-blog-surface-soft, var(--hdf-color-surface-selected)), color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 12%, var(--hdf-blog-surface, var(--hdf-color-surface))));
    color: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    outline: 3px solid var(--hdf-blog-surface, var(--hdf-color-surface));
    outline-offset: -4px;
}
.hdf-blog-author-avatar.is-fallback > .hdf-icon {
    position: relative;
    z-index: 1;
    width: 44%;
    height: 44%;
    stroke-width: 1.8;
}
.hdf-blog-author-avatar__halo {
    position: absolute;
    inset: 14%;
    border: var(--hdf-border-width-default) dashed color-mix(in srgb, var(--hdf-blog-accent, var(--hdf-color-primary-strong)) 45%, transparent);
    border-radius: inherit;
    opacity: 0.7;
}
.hdf-blog-author-avatar__badge {
    position: absolute;
    right: -0.12rem;
    bottom: -0.12rem;
    display: grid;
    width: 1.2rem;
    height: 1.2rem;
    place-items: center;
    border: 2px solid var(--hdf-blog-surface, var(--hdf-color-surface));
    border-radius: var(--hdf-radius-pill);
    background: var(--hdf-blog-accent, var(--hdf-color-primary-strong));
    color: var(--hdf-color-text-inverse);
}
.hdf-blog-author-avatar__badge .hdf-icon {
    width: 0.66rem;
    height: 0.66rem;
}

/* Canonical Contextual Spotlight placement shell; card content and behavior remain Engine-owned. */
.hdf-blog-hero__spotlight {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 0;
    height: 100%;
}
.hdf-blog-hero__spotlight .hdf-spotlight { width: 100%; max-width: none; }
