/*
Theme Name: Astra Child
Theme URI: https://abel-ai.com/
Description: Minimal Astra child theme for ABEL content templates.
Author: ABEL
Template: astra
Version: 1.0.4
Text Domain: astra-child
*/

.abel-post-page {
    max-width: 1320px;
    margin: 48px auto 72px;
    padding: 0 24px;
}

.abel-post-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.abel-post-sidebar {
    position: sticky;
    top: 120px;
}

.abel-post-sidebar h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.abel-post-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abel-post-sidebar li {
    margin: 0 0 14px;
}

.abel-post-sidebar a {
    text-decoration: none;
    color: #111111;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.abel-post-sidebar a:hover,
.abel-post-sidebar a.is-active {
    color: #6f52ff;
    font-weight: 800;
}

.abel-post-main {
    min-width: 0;
}

.abel-post-shell {
    max-width: 980px;
    margin: 0 auto 72px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.abel-post-hero {
    padding: 72px 72px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.abel-post-hero__inner {
    width: min(100%, 760px);
    margin: 0 auto;
    text-align: center;
}

.abel-post-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.abel-post-title {
    margin: 20px 0 16px;
    color: #0f172a;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-align: center;
}

.abel-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
}

.abel-post-meta span + span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 12px 0 0;
    border-radius: 999px;
    background: #94a3b8;
    vertical-align: middle;
}

.abel-post-featured {
    margin-top: 34px;
    border-radius: 22px;
    overflow: hidden;
}

.abel-post-featured img {
    display: block;
    width: 100%;
    height: auto;
}

.abel-post-content {
    width: min(calc(100% - 112px), 760px);
    margin: 0 auto;
    padding: 44px 0 28px;
    color: #334155;
    font-size: 18px;
    line-height: 1.9;
}

.abel-post-content > *:first-child {
    margin-top: 0;
}

.abel-post-content > *:last-child {
    margin-bottom: 0;
}

.abel-post-content h2,
.abel-post-content h3,
.abel-post-content h4 {
    color: #0f172a;
    margin-top: 1.7em;
    margin-bottom: 0.55em;
}

.abel-post-content p,
.abel-post-content ul,
.abel-post-content ol,
.abel-post-content blockquote {
    margin-bottom: 1.15em;
}

.abel-post-content ul,
.abel-post-content ol {
    padding-left: 1.35em;
}

.abel-post-content li + li {
    margin-top: 0.45em;
}

.abel-post-content a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.abel-post-content blockquote {
    border-left: 4px solid #6528f7;
    margin-left: 0;
    padding: 0.25em 0 0.25em 1.2em;
    color: #1e293b;
    background: rgba(101, 40, 247, 0.04);
}

.abel-post-content img {
    border-radius: 18px;
}

.abel-post-footer {
    width: min(calc(100% - 112px), 760px);
    margin: 0 auto;
    padding: 0 0 48px;
}

.abel-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.abel-post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.abel-blog-shell {
    max-width: 1280px;
    margin: 72px auto 96px;
    padding: 0 24px;
}

.abel-archive-hero {
    padding: 56px;
    border-radius: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    color: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

.abel-archive-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #c7d2fe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.abel-archive-title {
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.abel-archive-title span {
    color: #c7d2fe;
}

.abel-archive-description {
    margin-top: 20px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.abel-archive-description p:last-child {
    margin-bottom: 0;
}

.abel-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.abel-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.abel-post-card__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    overflow: hidden;
}

.abel-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abel-post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 26px 26px 28px;
}

.abel-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.abel-post-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
}

.abel-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.abel-post-card__excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.abel-post-card__link {
    margin-top: auto;
    color: #4338ca;
    font-weight: 800;
    text-decoration: none;
}

.abel-pagination {
    margin-top: 36px;
}

.abel-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.abel-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    font-weight: 700;
}

.abel-pagination .page-numbers.current,
.abel-pagination .page-numbers:hover {
    background: #6528f7;
    color: #ffffff;
}

.abel-empty-state {
    margin-top: 32px;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    color: #475569;
    text-align: center;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.abel-site-footer {
    background: #18181b;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 64px 0;
    font-family: 'Inter', sans-serif;
}

.abel-site-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 24px;
}

.abel-site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.abel-site-footer__title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 900;
}

.abel-site-footer__subtitle {
    margin: 0;
    color: #e4e4e7;
    font-size: 1.125rem;
    line-height: 1.625;
    font-weight: 700;
}

.abel-site-footer__heading {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 900;
}

.abel-site-footer__link-list {
    display: grid;
    gap: 8px;
    color: #e4e4e7;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
}

.abel-site-footer__link-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.abel-site-footer__link-list a:hover,
.abel-site-footer__link-list a:focus {
    color: #ffffff;
}

.abel-site-footer__company {
    display: grid;
    gap: 12px;
}

.abel-site-footer__company > div {
    font-size: 1rem;
    line-height: 1.5;
}

.abel-site-footer__company > div:first-child {
    color: #ffffff;
    font-weight: 900;
}

.abel-site-footer__company > div:not(:first-child) {
    color: #e4e4e7;
    font-weight: 700;
}

.abel-site-footer__copyright {
    padding-top: 8px;
    color: #a1a1aa !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
}

@media (min-width: 768px) {
    .abel-site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .abel-site-footer__company {
        text-align: right;
    }
}

@media (min-width: 1200px) {
    .abel-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .abel-post-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .abel-post-sidebar {
        position: static;
    }

    .abel-post-sidebar h3 {
        font-size: 28px;
    }

    .abel-post-sidebar ul {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .abel-post-sidebar li {
        margin: 0;
    }
}

@media (max-width: 921px) {
    .abel-post-page {
        margin: 36px auto 56px;
        padding: 0 20px;
    }

    .abel-post-shell {
        border-radius: 24px;
        margin: 0 auto 56px;
    }

    .abel-post-hero {
        padding: 42px 28px 0;
    }

    .abel-post-content {
        width: calc(100% - 56px);
        padding: 32px 0 24px;
        font-size: 17px;
    }

    .abel-post-footer {
        width: calc(100% - 56px);
        padding: 0 0 32px;
    }

    .abel-blog-shell {
        margin: 48px auto 72px;
    }

    .abel-archive-hero {
        padding: 36px 28px;
        border-radius: 24px;
    }

    .abel-post-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .abel-post-page {
        padding: 0 16px;
    }

    .abel-post-sidebar h3 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .abel-post-sidebar a {
        font-size: 16px;
    }

    .abel-post-title {
        font-size: clamp(1.9rem, 10vw, 2.7rem);
    }

    .abel-post-meta {
        gap: 8px 14px;
        font-size: 14px;
    }

    .abel-post-content,
    .abel-post-footer {
        width: calc(100% - 40px);
    }
}
