/* ============================================================
   single-editorial.css — Single post editorial layout
   ============================================================ */

/* ── Breadcrumb ── */
.db-breadcrumb {
    font-size: 0.775rem;
    color: #888;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.db-breadcrumb a {
    color: #f59e0b;
    text-decoration: none;
}

.db-breadcrumb a:hover {
    text-decoration: underline;
}

.db-breadcrumb__sep {
    color: #555;
    margin: 0 0.15rem;
}

.db-breadcrumb__current {
    color: #ccc;
}

/* ── Entry header upgrade ── */
.entry-header {
    margin-bottom: 1rem;
}

.entry-header .entry-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* ── LCP-safe featured image ── */
.db-single-hero {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 1.5rem;
}

.db-single-hero-wrap {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

/* ── Rating block ── */
.db-rating-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.25);
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.db-rating-block__score {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: #f59e0b;
    min-width: 60px;
    text-align: center;
}

.db-rating-block__score-denom {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

.db-rating-block__right {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.db-rating-block__label {
    font-weight: 700;
    font-size: 1rem;
    color: #f59e0b;
}

.db-rating-block__type {
    font-size: 0.825rem;
    color: #aaa;
}

/* ── Trust bar ── */
.db-trust-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.65rem 0;
    margin-bottom: 1.5rem;
}

.db-trust-bar a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
}

.db-trust-bar a:hover {
    text-decoration: underline;
}

.db-trust-bar__sep {
    color: rgba(255,255,255,0.18);
}

/* ── Sources box ── */
.db-sources-box {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
    padding-top: 1rem;
}

.db-sources-box__title {
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.5rem;
}

.db-sources-box ul {
    list-style: disc;
    margin: 0;
    padding-left: 1.5rem;
}

.db-sources-box li {
    font-size: 0.82rem;
    color: #aaa;
    line-height: 1.6;
}

/* ── Enhanced author bio ── */
.author-bio {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 2rem;
}

.author-bio .avatar {
    border-radius: 50%;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.author-bio__body {
    flex: 1;
    min-width: 0;
}

.author-bio__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
}

.author-bio__name a {
    color: #fff;
    text-decoration: none;
}

.author-bio__name a:hover {
    color: #f59e0b;
}

.author-bio__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
    margin: 0 0 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-bio__credentials {
    font-size: 0.78rem;
    color: #aaa;
    margin: 0 0 0.5rem;
    font-style: italic;
}

.author-bio__desc {
    font-size: 0.875rem;
    color: #ccc;
    line-height: 1.65;
    margin: 0 0 0.5rem;
}

.author-bio__count {
    font-size: 0.75rem;
    color: #777;
    margin: 0 0 0.5rem;
}

.author-bio__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.author-bio__tag {
    display: inline-block;
    padding: 0.15em 0.55em;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 3px;
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
    letter-spacing: 0.04em;
}

/* ── Related posts ── */
.db-related-posts {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.db-related-posts__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.db-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 700px) {
    .db-related-posts__grid {
        grid-template-columns: 1fr;
    }
}

.db-related-card a {
    text-decoration: none;
    color: inherit;
}

.db-related-card__img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 5px;
    background: #111;
    margin-bottom: 0.5rem;
}

.db-related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.db-related-card a:hover .db-related-card__img {
    transform: scale(1.05);
}

.db-related-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #12121e;
}

.db-related-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.db-related-card a:hover .db-related-card__title {
    color: #f59e0b;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .author-bio {
        flex-direction: column;
    }
    .db-rating-block {
        flex-direction: column;
        gap: 0.5rem;
    }
    .db-trust-bar {
        gap: 0.4rem 0.75rem;
    }
}
