/* =========================================================
   AAT Single Article Engine 1.0
   ========================================================= */

.aea-single-page {
    --aea-gold: #c99622;
    --aea-gold-dark: #9b6d0c;
    --aea-ink: #151515;
    --aea-muted: #6f6a62;
    --aea-paper: #ffffff;
    --aea-soft: #f8f5ef;
    --aea-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;
}

.aea-article {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 58px clamp(26px, 5vw, 82px) 64px;
    background: var(--aea-paper);
    border: 1px solid rgba(26, 22, 16, .08);
    border-radius: 20px;
    box-shadow: 0 18px 60px rgba(37, 29, 15, .08);
    overflow: hidden;
}

.aea-article-header {
    width: min(940px, 100%);
    margin: 0 auto 34px;
    text-align: center;
}

.aea-article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--aea-muted);
    font-size: 14px;
}

.aea-article-breadcrumb a {
    color: var(--aea-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.aea-article-breadcrumb a:hover { color: var(--aea-gold-dark); }

.aea-article-title {
    margin: 0;
    color: var(--aea-ink);
    font-size: clamp(28px, 2.45vw, 40px);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.aea-title-rule {
    width: 110px;
    height: 3px;
    margin: 24px auto 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--aea-gold), transparent);
}

.aea-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--aea-muted);
    font-size: 14px;
}

.aea-article-meta time,
.aea-meta-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.aea-meta-label { color: #958b79; }
.aea-article-meta strong,
.aea-meta-category a {
    color: var(--aea-gold-dark);
    font-weight: 700;
    text-decoration: none;
}

.aea-meta-divider {
    width: 1px;
    height: 18px;
    background: var(--aea-line);
}

.aea-article-featured {
    width: min(1000px, 100%);
    margin: 0 auto 45px;
}

.aea-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);
}

.aea-article-featured figcaption {
    margin-top: 12px;
    color: var(--aea-muted);
    font-size: 12.5px;
    line-height: 1.7;
    text-align: center;
}

.aea-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;
}

.aea-article-body > *:first-child { margin-top: 0; }
.aea-article-body p { margin: 0 0 1.45em; }
.aea-article-body h2,
.aea-article-body h3,
.aea-article-body h4 {
    color: var(--aea-ink);
    line-height: 1.55;
    margin: 2em 0 .75em;
}
.aea-article-body h2 {
    padding-right: 16px;
    border-right: 3px solid var(--aea-gold);
    font-size: clamp(25px, 2vw, 32px);
}
.aea-article-body h3 { font-size: clamp(21px, 1.65vw, 27px); }
.aea-article-body a { color: var(--aea-gold-dark); text-underline-offset: 4px; }
.aea-article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.aea-article-body blockquote {
    margin: 2em 0;
    padding: 22px 26px;
    background: var(--aea-soft);
    border-right: 4px solid var(--aea-gold);
    border-radius: 10px;
    color: #403b33;
}

.aea-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);
}

.aea-share-heading { text-align: center; margin-bottom: 20px; }
.aea-share-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--aea-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}
.aea-share-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 1.8vw, 27px);
}

.aea-share-groups { display: grid; gap: 18px; }
.aea-share-group + .aea-share-group {
    padding-top: 18px;
    border-top: 1px solid rgba(201, 150, 34, .22);
}
.aea-group-label {
    display: block;
    margin-bottom: 10px;
    color: #d7c9ad;
    font-size: 13px;
    text-align: center;
}
.aea-share-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.aea-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;
}
.aea-share-btn:hover,
.aea-share-btn:focus-visible {
    transform: translateY(-2px);
    border-color: var(--aea-gold);
    background: rgba(201, 150, 34, .13);
    color: #f6cf6f;
    outline: none;
}
.aea-share-brand,
.aea-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--aea-gold);
    font-size: 17px;
    font-weight: 800;
}
.aea-share-brand-in { font-size: 12px; border: 1px solid currentColor; border-radius: 3px; }
.aea-tool-icon { font-size: 14px; }


.aea-share-group:first-child .aea-share-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.aea-share-group:first-child .aea-share-btn {
    width: 100%;
}
.aea-share-brand-reddit,
.aea-share-brand-pinterest {
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
}
.aea-page-links { margin: 30px 0; text-align: center; }

@media (max-width: 782px) {
    .aea-single-page { padding: 26px 12px 42px; }
    .aea-article {
        padding: 32px 18px 38px;
        border-radius: 13px;
    }
    .aea-article-header { margin-bottom: 25px; }
    .aea-article-title { font-size: clamp(25px, 7vw, 32px); line-height: 1.6; }
    .aea-article-meta { gap: 9px 12px; }
    .aea-meta-divider { display: none; }
    .aea-article-featured { margin-bottom: 30px; }
    .aea-article-featured img { border-radius: 10px; }
    .aea-article-body {
        font-size: 17px;
        line-height: 1.95;
        text-align: right;
    }
    .aea-share-box { margin-top: 38px; padding: 22px 14px; }
    .aea-share-group:first-child .aea-share-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aea-share-btn { padding: 9px 12px; }
}

@media print {
    body { background: #fff !important; }
    #wpadminbar,
    header,
    footer,
    .aea-article-breadcrumb,
    .aea-share-box,
    .aea-showcase,
    .aea-footer-network,
    .aea-footer-social,
    .aea-site-footer { display: none !important; }
    .aea-single-page { padding: 0 !important; background: #fff !important; }
    .aea-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;
    }
    .aea-article-title { font-size: 28pt !important; }
    .aea-article-body { width: 100% !important; font-size: 12pt !important; line-height: 1.8 !important; }
    .aea-article-featured img { max-height: none !important; border: 0 !important; box-shadow: none !important; }
    a { color: #000 !important; text-decoration: none !important; }
}

/* =========================================================
   Article sharing, tags and controlled featured image
   ========================================================= */

/* Keep the main article image elegant and prevent excessive enlargement. */
.aea-single-card .aea-article-featured{
    width: min(780px, 100%);
    margin: 0 auto 42px;
}

.aea-single-card .aea-article-featured img{
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: #f2efe9;
}

/* Tags */
.aea-article-tags{
    width: min(820px, 100%);
    margin: 24px auto 0;
    padding: 22px;
    border: 1px solid rgba(201,150,34,.28);
    border-radius: 14px;
    background: #fbf8f2;
}

.aea-article-tags h2{
    margin: 0 0 14px;
    color: var(--aea-ink);
    font-size: 18px;
    text-align: center;
}

.aea-article-tags__list{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.aea-article-tags__list a{
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid rgba(201,150,34,.38);
    border-radius: 999px;
    background: #fff;
    color: var(--aea-gold-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.aea-article-tags__list a:hover{
    transform: translateY(-2px);
    background: var(--aea-gold);
    color: #fff;
}

@media (max-width: 782px){
    .aea-single-card .aea-article-featured{
        width: 100%;
        margin-bottom: 28px;
    }

    .aea-single-card .aea-article-featured img{
        max-height: 390px;
    }

    .aea-article-tags{
        padding: 18px 12px;
    }
}


/* =========================================================
   Final article identity polish
   ========================================================= */

/* Meta cards above the title */
.aea-article-meta-cards{
    display:flex;
    justify-content:center;
    align-items:stretch;
    flex-wrap:wrap;
    gap:14px;
    margin:0 auto 24px;
}

.aea-meta-card{
    min-width:220px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 16px;
    border:1px solid rgba(201,150,34,.34);
    border-radius:12px;
    background:linear-gradient(180deg,#fffdf8,#f8f3e8);
    box-shadow:0 8px 20px rgba(6,38,74,.06);
    text-align:right;
}

.aea-meta-card__icon{
    flex:0 0 36px;
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--aea-navy);
    color:var(--aea-gold);
    font-size:18px;
    font-weight:900;
}

.aea-meta-card__content{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.aea-meta-card__content small{
    color:#8a7f6d;
    font-size:11px;
    font-weight:700;
}

.aea-meta-card__content strong,
.aea-meta-card__content time,
.aea-meta-card__content a{
    color:var(--aea-navy);
    font-size:14px;
    font-weight:800;
    text-decoration:none;
}

/* Title and decorative gold rule */
.aea-article-title{
    color:var(--aea-navy);
}

.aea-title-rule{
    position:relative;
    width:150px;
    height:2px;
    margin:24px auto 26px;
    background:linear-gradient(90deg,transparent,var(--aea-gold),transparent);
}

.aea-title-rule span{
    position:absolute;
    top:50%;
    left:50%;
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--aea-gold);
    box-shadow:0 0 0 5px rgba(201,150,34,.12);
    transform:translate(-50%,-50%);
}

/* Framed featured-image card */
.aea-single-card .aea-article-featured-card{
    width:min(820px,100%);
    padding:14px;
    border:1px solid rgba(201,150,34,.42);
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#fbf8f2);
    box-shadow:0 16px 36px rgba(6,38,74,.10);
}

.aea-single-card .aea-article-featured-card img{
    width:auto;
    max-width:100%;
    max-height:520px;
    border:0;
    border-radius:12px;
    box-shadow:none;
}

/* Share box recolored to match site identity */
.aea-share-box{
    background:
        radial-gradient(circle at 85% 0%,rgba(105,197,238,.16),transparent 26rem),
        linear-gradient(145deg,#fdfbf6,#f5f0e6);
    color:var(--aea-navy);
    border:1px solid rgba(201,150,34,.48);
    box-shadow:0 16px 38px rgba(6,38,74,.10);
}

.aea-share-kicker{
    color:var(--aea-gold-dark);
}

.aea-share-heading h2{
    color:var(--aea-navy);
}

.aea-share-group + .aea-share-group{
    border-top-color:rgba(201,150,34,.28);
}

.aea-group-label{
    color:#756a58;
    font-weight:700;
}

.aea-share-btn{
    border-color:rgba(6,38,74,.14);
    background:#fff;
    color:var(--aea-navy);
    box-shadow:0 5px 14px rgba(6,38,74,.05);
}

.aea-share-btn:hover,
.aea-share-btn:focus-visible{
    border-color:var(--aea-gold);
    background:var(--aea-navy);
    color:#fff;
}

.aea-share-brand,
.aea-tool-icon{
    color:var(--aea-gold-dark);
}

.aea-share-btn:hover .aea-share-brand,
.aea-share-btn:hover .aea-tool-icon,
.aea-share-btn:focus-visible .aea-share-brand,
.aea-share-btn:focus-visible .aea-tool-icon{
    color:var(--aea-gold);
}

@media (max-width:782px){
    .aea-article-meta-cards{
        display:grid;
        grid-template-columns:1fr;
        gap:10px;
    }

    .aea-meta-card{
        min-width:0;
        width:100%;
    }

    .aea-single-card .aea-article-featured-card{
        padding:9px;
        border-radius:14px;
    }

    .aea-single-card .aea-article-featured-card img{
        max-height:390px;
        border-radius:9px;
    }
}