/* Forum/content embeds — shared by the homepage, the forum and the Admin CP
   preview, so it never depends on a theme stylesheet. */

.site-embed-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.site-embed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    box-shadow: 0 18px 42px rgba(2, 8, 20, 0.32);
    color: var(--text, #edf2ff);
    min-width: 0;
}

.site-embed-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
}

.site-embed-head h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.site-embed-head h3 a {
    color: inherit;
}

.site-embed-head h3 a:hover {
    color: var(--secondary, #36d1dc);
}

.site-embed-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--secondary, #36d1dc);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-embed-link:hover {
    color: var(--text, #edf2ff);
}

.site-embed-description {
    color: var(--muted, #a7b2c9);
    font-size: 0.86rem;
    line-height: 1.6;
}

.site-embed-description p {
    margin: 0 0 6px;
}

.site-embed-description p:last-child {
    margin-bottom: 0;
}

.site-embed-excerpt {
    margin: 0;
    color: var(--muted, #a7b2c9);
    font-size: 0.86rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-embed-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-embed-item {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-bottom: 9px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.site-embed-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.site-embed-item-title {
    color: var(--text, #edf2ff);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.site-embed-item-title:hover {
    color: var(--secondary, #36d1dc);
}

.site-embed-item-meta {
    color: var(--muted, #a7b2c9);
    font-size: 0.76rem;
    line-height: 1.5;
}

.site-embed-item-meta strong {
    color: var(--text, #edf2ff);
}

/* Homepage section that hosts the embeds. */
.home-embeds {
    padding: 12px 0 64px;
}

.home-embeds .container {
    display: grid;
    gap: 18px;
}

.home-embeds-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
}

.home-embeds-heading h2 {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

@media (max-width: 620px) {
    .site-embed {
        padding: 16px 16px 18px;
    }

    .home-embeds {
        padding-bottom: 46px;
    }
}
