/* Inline related posts - minimal, theme friendly styling */

.tdn-irp-inline-related {
    margin: 2em 0;
    padding: 1.25em 1.5em;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    font-size: 0.95rem;
}

/* Respect dark mode setups that use data-theme on html */
html[data-theme="dark"] .tdn-irp-inline-related {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.tdn-irp-inline-related .tdn-irp-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.tdn-irp-main-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.tdn-irp-thumb-wrap {
    flex: 0 0 auto;
    max-width: 160px;
}

.tdn-irp-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.tdn-irp-text {
    flex: 1 1 auto;
}

.tdn-irp-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.3;
}

.tdn-irp-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Stack vertically on small screens so it feels native to most themes */
@media (max-width: 600px) {
    .tdn-irp-main-link {
        flex-direction: column;
    }

    .tdn-irp-thumb-wrap {
        max-width: 100%;
    }
}
