/* Taquero overlay for the Soro embed — wins against Soro's light-theme inject. */

#soro-blog {
    min-height: 160px;
}

#soro-blog .soro-blog {
    max-width: none !important;
    margin: 0 !important;
    color: #e8e4dc !important;
    background: transparent !important;
    font-family: Inter, sans-serif !important;
}

#soro-blog .soro-blog a {
    color: inherit !important;
    text-decoration: none !important;
}

#soro-blog .soro-blog a.soro-blog-back {
    color: #c9a962 !important;
}

#soro-blog .soro-blog a.soro-blog-back:hover {
    color: #000 !important;
}

#soro-blog .soro-blog-article-content a {
    color: #c9a962 !important;
}

#soro-blog .soro-blog-header {
    display: none !important;
    margin-bottom: 1.75rem !important;
}

body:has(.soro-blog-article.visible) #soro-blog .soro-blog-header {
    display: flex !important;
}

#soro-blog .soro-blog-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: transparent !important;
    border: 1px solid rgba(201, 169, 98, 0.4) !important;
    color: #c9a962 !important;
    font-size: 10px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 0.7rem 1.15rem !important;
    border-radius: 0 !important;
    transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease !important;
}

#soro-blog .soro-blog-back:hover {
    background: linear-gradient(90deg, #c9a962, #e8dcc4) !important;
    border-color: #c9a962 !important;
    color: #000 !important;
}

#soro-blog .soro-blog-list {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 1.75rem !important;
}

#soro-blog .soro-blog-card {
    grid-column: span 4;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(18, 18, 16, 0.96), rgba(8, 8, 6, 0.98)) !important;
    border: 1px solid rgba(201, 169, 98, 0.12) !important;
    border-radius: 14px !important;
    color: #e8e4dc !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease !important;
}

#soro-blog .soro-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 98, 0.38) !important;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 98, 0.08) !important;
}

#soro-blog .soro-blog-card:first-child {
    grid-column: span 12;
    flex-direction: row !important;
    align-items: stretch !important;
}

#soro-blog .soro-blog-card-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#soro-blog .soro-blog-card:first-child .soro-blog-card-image {
    width: 48% !important;
    height: auto !important;
    min-height: 320px;
}

#soro-blog .soro-blog-card:hover .soro-blog-card-image {
    transform: scale(1.04);
}

#soro-blog .soro-blog-card-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 1.4rem 1.5rem 1.55rem;
    display: flex;
    flex-direction: column;
}

#soro-blog .soro-blog-card:first-child .soro-blog-card-content {
    padding: 2.25rem 2.4rem;
    justify-content: center;
}

#soro-blog .soro-blog-card-title,
#soro-blog h2.soro-blog-card-title {
    font-family: "Playfair Display", serif !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin: 0 0 0.7rem !important;
    color: #f3efe6 !important;
}

#soro-blog .soro-blog-card:first-child .soro-blog-card-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
}

#soro-blog .soro-blog-card-excerpt {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #c8c3b8 !important;
    margin: 0 0 1.1rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#soro-blog .soro-blog-card:first-child .soro-blog-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 1rem !important;
}

#soro-blog .soro-blog-card-date {
    margin-top: auto;
    font-size: 10px !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a962 !important;
}

#soro-blog .soro-blog-article {
    max-width: 740px;
    margin: 0 auto;
    color: #ddd8ce !important;
}

#soro-blog .soro-blog-article-title {
    font-family: "Playfair Display", serif !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    margin: 0 0 0.85rem !important;
    color: #f6f1e8 !important;
}

#soro-blog .soro-blog-article-date {
    font-size: 11px !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a962 !important;
    margin-bottom: 1.75rem !important;
}

#soro-blog .soro-blog-article-image {
    width: 100% !important;
    max-height: 460px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    margin-bottom: 2rem !important;
    border: 1px solid rgba(201, 169, 98, 0.12);
}

#soro-blog .soro-blog-article-content,
#soro-blog .soro-blog-article-content p,
#soro-blog .soro-blog-article-content li {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: #ddd8ce !important;
}

#soro-blog .soro-blog-article-content p {
    margin: 0 0 1.15rem !important;
}

#soro-blog .soro-blog-article-content h1,
#soro-blog .soro-blog-article-content h2,
#soro-blog .soro-blog-article-content h3,
#soro-blog .soro-blog-article-content h4 {
    font-family: "Playfair Display", serif !important;
    color: #e8dcc4 !important;
    margin-top: 2.1rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.3 !important;
}

#soro-blog .soro-blog-article-content h2 { font-size: 1.65rem !important; }
#soro-blog .soro-blog-article-content h3 { font-size: 1.3rem !important; }

#soro-blog .soro-blog-article-content a {
    color: #c9a962 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

#soro-blog .soro-blog-article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    margin: 0.5rem 0 1.25rem;
}

#soro-blog .soro-blog-empty,
#soro-blog .soro-blog-loading,
#soro-blog .soro-blog-error {
    color: #c8c3b8 !important;
}

#soro-blog .soro-blog-spinner {
    border-color: #c9a962 #3a3428 #3a3428 !important;
}

body:has(.soro-blog-article.visible) .soro-list-heading,
body:has(.soro-blog-article.visible) #journal-archive,
body:has(.soro-blog-article.visible) .journal-archive-rule {
    display: none !important;
}

@media (max-width: 900px) {
    #soro-blog .soro-blog-card {
        grid-column: span 6;
    }

    #soro-blog .soro-blog-card:first-child {
        grid-column: span 12;
        flex-direction: column !important;
    }

    #soro-blog .soro-blog-card:first-child .soro-blog-card-image {
        width: 100% !important;
        height: 240px !important;
        min-height: 0;
    }

    #soro-blog .soro-blog-card:first-child .soro-blog-card-title {
        font-size: 1.55rem !important;
    }

    #soro-blog .soro-blog-card:first-child .soro-blog-card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    #soro-blog .soro-blog-card,
    #soro-blog .soro-blog-card:first-child {
        grid-column: span 12;
        flex-direction: column !important;
    }

    #soro-blog .soro-blog-card-image,
    #soro-blog .soro-blog-card:first-child .soro-blog-card-image {
        width: 100% !important;
        height: 200px !important;
    }
}
