/* =========================================================
   AAT Single Article Engine 1.0
   ========================================================= */

.aat-single-page {
    --aat-gold: #c99622;
    --aat-gold-dark: #9b6d0c;
    --aat-ink: #151515;
    --aat-muted: #6f6a62;
    --aat-paper: #ffffff;
    --aat-soft: #f8f5ef;
    --aat-line: rgba(201, 150, 34, .28);
    direction: rtl;
    background:
        radial-gradient(circle at 90% 0%, rgba(201,150,34,.08), transparent 27rem),
        #f7f4ee;
    padding: 58px 24px 72px;
}

.aat-article {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 58px clamp(26px, 5vw, 82px) 64px;
    background: var(--aat-paper);
    border: 1px solid rgba(26, 22, 16, .08);
    border-radius: 20px;
    box-shadow: 0 18px 60px rgba(37, 29, 15, .08);
    overflow: hidden;
}

.aat-article-header {
    width: min(940px, 100%);
    margin: 0 auto 34px;
    text-align: center;
}

.aat-article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--aat-muted);
    font-size: 14px;
}

.aat-article-breadcrumb a {
    color: var(--aat-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.aat-article-breadcrumb a:hover { color: var(--aat-gold-dark); }

.aat-article-title {
    margin: 0;
    color: var(--aat-ink);
    font-size: clamp(28px, 2.45vw, 40px);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.aat-title-rule {
    width: 110px;
    height: 3px;
    margin: 24px auto 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--aat-gold), transparent);
}

.aat-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--aat-muted);
    font-size: 14px;
}

.aat-article-meta time,
.aat-meta-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.aat-meta-label { color: #958b79; }
.aat-article-meta strong,
.aat-meta-category a {
    color: var(--aat-gold-dark);
    font-weight: 700;
    text-decoration: none;
}

.aat-meta-divider {
    width: 1px;
    height: 18px;
    background: var(--aat-line);
}

.aat-article-featured {
    width: min(1000px, 100%);
    margin: 0 auto 45px;
}

.aat-article-featured img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    background: #f2efe9;
    border: 1px solid rgba(201, 150, 34, .35);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(25, 20, 12, .12);
}

.aat-article-featured figcaption {
    margin-top: 12px;
    color: var(--aat-muted);
    font-size: 12.5px;
    line-height: 1.7;
    text-align: center;
}

.aat-article-body {
    width: min(830px, 100%);
    margin: 0 auto;
    color: #282521;
    font-size: clamp(17px, 1.15vw, 19px);
    line-height: 2.05;
    text-align: justify;
}

.aat-article-body > *:first-child { margin-top: 0; }
.aat-article-body p { margin: 0 0 1.45em; }
.aat-article-body h2,
.aat-article-body h3,
.aat-article-body h4 {
    color: var(--aat-ink);
    line-height: 1.55;
    margin: 2em 0 .75em;
}
.aat-article-body h2 {
    padding-right: 16px;
    border-right: 3px solid var(--aat-gold);
    font-size: clamp(25px, 2vw, 32px);
}
.aat-article-body h3 { font-size: clamp(21px, 1.65vw, 27px); }
.aat-article-body a { color: var(--aat-gold-dark); text-underline-offset: 4px; }
.aat-article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.aat-article-body blockquote {
    margin: 2em 0;
    padding: 22px 26px;
    background: var(--aat-soft);
    border-right: 4px solid var(--aat-gold);
    border-radius: 10px;
    color: #403b33;
}

.aat-share-box {
    width: min(820px, 100%);
    margin: 46px auto 0;
    padding: clamp(22px, 3vw, 32px);
    background: linear-gradient(145deg, #171717, #0d0d0d);
    color: #fff;
    border: 1px solid rgba(201, 150, 34, .45);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}

.aat-share-heading { text-align: center; margin-bottom: 20px; }
.aat-share-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--aat-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}
.aat-share-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 1.8vw, 27px);
}

.aat-share-groups { display: grid; gap: 18px; }
.aat-share-group + .aat-share-group {
    padding-top: 18px;
    border-top: 1px solid rgba(201, 150, 34, .22);
}
.aat-group-label {
    display: block;
    margin-bottom: 10px;
    color: #d7c9ad;
    font-size: 13px;
    text-align: center;
}
.aat-share-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.aat-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.aat-share-btn:hover,
.aat-share-btn:focus-visible {
    transform: translateY(-2px);
    border-color: var(--aat-gold);
    background: rgba(201, 150, 34, .13);
    color: #f6cf6f;
    outline: none;
}
.aat-share-brand,
.aat-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--aat-gold);
    font-size: 17px;
    font-weight: 800;
}
.aat-share-brand-in { font-size: 12px; border: 1px solid currentColor; border-radius: 3px; }
.aat-tool-icon { font-size: 14px; }


.aat-share-group:first-child .aat-share-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.aat-share-group:first-child .aat-share-btn {
    width: 100%;
}
.aat-share-brand-reddit,
.aat-share-brand-pinterest {
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
}
.aat-page-links { margin: 30px 0; text-align: center; }

@media (max-width: 782px) {
    .aat-single-page { padding: 26px 12px 42px; }
    .aat-article {
        padding: 32px 18px 38px;
        border-radius: 13px;
    }
    .aat-article-header { margin-bottom: 25px; }
    .aat-article-title { font-size: clamp(25px, 7vw, 32px); line-height: 1.6; }
    .aat-article-meta { gap: 9px 12px; }
    .aat-meta-divider { display: none; }
    .aat-article-featured { margin-bottom: 30px; }
    .aat-article-featured img { border-radius: 10px; }
    .aat-article-body {
        font-size: 17px;
        line-height: 1.95;
        text-align: right;
    }
    .aat-share-box { margin-top: 38px; padding: 22px 14px; }
    .aat-share-group:first-child .aat-share-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aat-share-btn { padding: 9px 12px; }
}

@media print {
    body { background: #fff !important; }
    #wpadminbar,
    header,
    footer,
    .aat-article-breadcrumb,
    .aat-share-box,
    .aat-showcase,
    .aat-footer-network,
    .aat-footer-social,
    .aat-site-footer { display: none !important; }
    .aat-single-page { padding: 0 !important; background: #fff !important; }
    .aat-article {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .aat-article-title { font-size: 28pt !important; }
    .aat-article-body { width: 100% !important; font-size: 12pt !important; line-height: 1.8 !important; }
    .aat-article-featured img { max-height: none !important; border: 0 !important; box-shadow: none !important; }
    a { color: #000 !important; text-decoration: none !important; }
}
