/* Arc Fault Records — Featured Profiles v1.1.1 */
/* =========================================================
   PAGE BACKGROUND BLEED
   Use the same page canvas and theme preference as Arc Fault Social.
   The shared theme.js owns data-afr-theme; no separate theme is stored.
   These rules are active only on pages containing Featured Profiles.
   ========================================================= */
html:has(.afr-featured-profiles) {
    --afr-featured-site-page: #0d0d0e;
    min-height: 100%;
    background: var(--afr-featured-site-page) !important;
    color-scheme: dark;
}

/* The site-wide theme wins. The component theme is a fallback for
   standalone installations which do not load the shared theme.js. */
html[data-afr-theme="light"]:has(.afr-featured-profiles),
html:not([data-afr-theme]):has(.afr-featured-profiles[data-theme="light"]) {
    --afr-featured-site-page: #f5f5f4;
    color-scheme: light;
}

body:has(.afr-featured-profiles) {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: clip;
    background: var(--afr-featured-site-page) !important;
    color-scheme: inherit;
}

/* Squarespace's page shells can otherwise retain their white fill. */
body:has(.afr-featured-profiles) #siteWrapper,
body:has(.afr-featured-profiles) #page,
body:has(.afr-featured-profiles) main,
body:has(.afr-featured-profiles) .Main,
body:has(.afr-featured-profiles) .Main-content {
    background: var(--afr-featured-site-page) !important;
}

/* Match the news feed's transparent section and footer treatment. */
body:has(.afr-featured-profiles) .page-section,
body:has(.afr-featured-profiles) .section-background,
body:has(.afr-featured-profiles) .section-background-overlay,
body:has(.afr-featured-profiles) .section-border,
body:has(.afr-featured-profiles) .content-wrapper,
body:has(.afr-featured-profiles) #footer-sections {
    background: transparent !important;
}

/* Clear decorative section background layers only where the block lives.
   This does not affect card covers, ordinary images, or the site header. */
body:has(.afr-featured-profiles) .page-section:has(.afr-featured-profiles) .section-background > * {
    visibility: hidden !important;
}

body:has(.afr-featured-profiles) .sqs-layout:has(.afr-featured-profiles),
body:has(.afr-featured-profiles) .sqs-block:has(.afr-featured-profiles),
body:has(.afr-featured-profiles) .sqs-block-content:has(.afr-featured-profiles),
body:has(.afr-featured-profiles) .fluid-engine:has(.afr-featured-profiles) {
    background: transparent !important;
}

.afr-featured-profiles {
    --afr-featured-bg: var(--afr-featured-site-page, var(--afr-page, #0d0d0e));
    --afr-featured-card: var(--afr-card, #151516);
    --afr-featured-card-alt: var(--afr-card-alt, #19191b);
    --afr-featured-border: var(--afr-border, #2d2d31);
    --afr-featured-text: var(--afr-text, #f3f3f4);
    --afr-featured-soft: var(--afr-text-soft, #d1d1d4);
    --afr-featured-muted: var(--afr-muted, #8d8d93);
    --afr-featured-shadow: var(--afr-shadow, 0 10px 30px rgba(0, 0, 0, .18));
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 28px 32px 40px;
    box-sizing: border-box;
    background: transparent;
    color: var(--afr-featured-text);
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
}

/* Full-width background without widening the card layout. */
.afr-featured-profiles::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--afr-featured-bg);
    pointer-events: none;
}

.afr-featured-profiles[data-theme="light"],
html[data-afr-theme="light"] .afr-featured-profiles:not([data-theme="dark"]) {
    --afr-featured-bg: #f5f5f4;
    --afr-featured-card: #ffffff;
    --afr-featured-card-alt: #f8f8f7;
    --afr-featured-border: #d8d8d4;
    --afr-featured-text: #171719;
    --afr-featured-soft: #333336;
    --afr-featured-muted: #717177;
    --afr-featured-shadow: 0 10px 28px rgba(0, 0, 0, .07);
    color-scheme: light;
}

.afr-featured-profiles *,
.afr-featured-profiles *::before,
.afr-featured-profiles *::after {
    box-sizing: border-box;
}

.afr-featured-profiles__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--afr-featured-border);
}

.afr-featured-profiles__title {
    margin: 0;
    color: var(--afr-featured-text);
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.afr-featured-profiles__count {
    flex: none;
    color: var(--afr-featured-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.afr-featured-profiles__grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 18px;
    align-items: stretch;
}

.afr-featured-profile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--afr-featured-border);
    border-radius: 16px;
    background: var(--afr-featured-card);
    color: var(--afr-featured-text);
    box-shadow: var(--afr-featured-shadow);
}

.afr-featured-profile__cover {
    z-index: 0;
    position: relative;
    height: 118px;
    flex: none;
    overflow: hidden;
    background: linear-gradient(125deg, var(--afr-featured-card-alt), var(--afr-featured-card));
}

.afr-featured-profile__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afr-featured-profile__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 0 18px 18px;
}

.afr-featured-profile__avatar {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: -36px 0 12px;
    overflow: hidden;
    border: 4px solid var(--afr-featured-card);
    border-radius: 50%;
    background: var(--afr-featured-card-alt);
    color: var(--afr-featured-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.afr-featured-profile__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afr-featured-profile__name-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.afr-featured-profile__name {
    min-width: 0;
    margin: 0;
    color: var(--afr-featured-text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.afr-featured-profile__verified {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--afr-featured-text);
    color: var(--afr-featured-card);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.afr-featured-profile__handle {
    margin-top: 5px;
    color: var(--afr-featured-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.afr-featured-profile__bio {
    display: -webkit-box;
    height: 4.8em;
    margin: 13px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: var(--afr-featured-soft);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.afr-featured-profile__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--afr-featured-border);
    color: var(--afr-featured-text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.afr-featured-profile__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.afr-featured-profile__link:focus-visible {
    outline: 2px solid var(--afr-featured-text);
    outline-offset: 4px;
}

.afr-featured-profiles__status {
    padding: 18px;
    border: 1px solid var(--afr-featured-border);
    border-radius: 12px;
    background: var(--afr-featured-card);
    color: var(--afr-featured-muted);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 520px) {
    .afr-featured-profiles__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .afr-featured-profiles__grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the full-width canvas, but cap card content on wide displays. */
.afr-featured-profiles__header,
.afr-featured-profiles__grid,
.afr-featured-profiles__status {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) {
    .afr-featured-profiles {
        padding: 24px 16px 36px;
    }
}




/* Content Engine 2.10 profile-card link interaction */
.afr-featured-profile {
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.afr-featured-profile__name-link,
.afr-featured-profile__handle-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor,currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .16s ease;
}

.afr-featured-profile__handle-link {
    display: inline-block;
    width: fit-content;
    font-weight: 600;
}

.afr-featured-profile__name-link:hover,
.afr-featured-profile__name-link:focus-visible,
.afr-featured-profile__handle-link:hover,
.afr-featured-profile__handle-link:focus-visible {
    background-size: 100% 1px;
}

.afr-featured-profile__name-link:focus-visible,
.afr-featured-profile__handle-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (hover:hover) {
    .afr-featured-profile:hover {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion:reduce) {
    .afr-featured-profile,
    .afr-featured-profile__name-link,
    .afr-featured-profile__handle-link {
        transition: none;
    }
}
