/* ==========================================================================
   21. SINGLE BLOG POST COMPATIBILITY STYLES (Tailwind Mirrors)
   ========================================================================== */

/* Layout & Container */
.layout-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: var(--aitsc-bg-primary);
    padding-top: 5rem;
    /* Pushing content down to reveal breadcrumbs if header is fixed/sticky or just for spacing */
}

.layout-content-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Typography & Prose (Mirroring Tailwind Typography) */
.prose {
    color: var(--aitsc-text-secondary);
    max-width: 65ch;
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--aitsc-text-primary);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose h2 {
    font-size: 1.875rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose p {
    margin-bottom: 1.5em;
    /* Standard spacing for readability */
    margin-top: 0;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: var(--aitsc-text-primary);
    border-left-width: 0.25rem;
    border-left-color: var(--aitsc-primary);
    quotes: "\201C" "\201D" "\2018" "\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figcaption {
    color: var(--aitsc-text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    margin-top: 0.75em;
}

.prose a {
    color: var(--aitsc-primary);
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover {
    text-decoration: underline;
}

/* Utility Classes (Mirrors) */
.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex-1 {
    flex: 1 1 0%;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.grow {
    flex-grow: 1;
}

/* Text Utilities */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.leading-normal {
    line-height: 1.5;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Arbitrary width for truncate */
.max-w-\[200px\] {
    max-width: 200px;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.pt-12 {
    padding-top: 3rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.h-fit {
    height: fit-content;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-white {
    background-color: #ffffff;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-100 {
    background-color: #f1f5f9;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-900 {
    color: #0f172a;
}

.text-cyan-600 {
    color: var(--aitsc-primary);
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

/* Sticky Social Share */
.md\:sticky {
    position: sticky;
    top: 6rem;
}

/* Adjusted top for header */
.md\:top-24 {
    top: 6rem;
}

/* Article Header */
.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

/* Grid */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:w-16 {
        width: 4rem;
    }

    .md\:flex-col {
        flex-direction: column;
    }

    .md\:py-12 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .md\:block {
        display: block;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:gap-12 {
        gap: 3rem;
    }
}

/* Image Cover */
.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

.object-cover {
    object-fit: cover;
}

/* Social Icons */
.size-10 {
    width: 2.5rem;
    height: 2.5rem;
}

.size-5 {
    width: 1.25rem;
    height: 1.25rem;
}

.hover\:bg-slate-200:hover {
    background-color: #e2e8f0;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}