/* Automated Hacks content SEO presentation layer — v2.8.0 */
.ah-content-seo-overview,
.ah-content-seo-links,
.ah-seo-seeded-content,
.ah-template-related {
    margin: clamp(1.5rem, 3vw, 2.75rem) 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.12), transparent 38%),
        radial-gradient(circle at 0 100%, rgba(220, 38, 38, 0.09), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.97));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ah-content-seo-overview h2,
.ah-content-seo-links h2,
.ah-seo-seeded-content h2,
.ah-template-related h2 {
    margin-top: 0.45rem;
    color: #0f172a;
}

.ah-content-seo-overview p:last-child,
.ah-content-seo-links p:last-child,
.ah-seo-seeded-content p:last-child,
.ah-template-related p:last-child {
    margin-bottom: 0;
}

.ah-content-seo-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 999px;
    color: #991b1b;
    background: rgba(254, 226, 226, 0.72);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.ah-content-seo-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.ah-content-seo-links li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.ah-content-seo-links li a {
    color: #1d4ed8;
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ah-content-seo-links li span {
    flex: 0 0 auto;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: #475569;
    background: #eef2ff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ah-seo-seeded-content > :first-child {
    margin-top: 0;
}

.ah-seo-seeded-content > :last-child {
    margin-bottom: 0;
}

.ah-template-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.ah-template-related-grid article {
    padding: 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.ah-template-related-grid article > span {
    color: #b91c1c;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ah-template-related-grid h3 {
    margin: 0.45rem 0 0.55rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.ah-template-related-grid h3 a {
    color: #0f172a;
    text-decoration: none;
}

.ah-template-related-grid h3 a:hover,
.ah-template-related-grid h3 a:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ah-template-related-grid p {
    color: #64748b;
    font-size: 0.92rem;
}

.ahp-featured-image img,
.ah-content-seo-featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 720px) {
    .ah-content-seo-links ul,
    .ah-template-related-grid {
        grid-template-columns: 1fr;
    }

    .ah-content-seo-links li {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
 * SEO performance report implementation — v2.8.0
 * ======================================================= */
.ah-seo-report-priority,
.ah-editorial-review-notice,
.ah-source-reference-card,
.ah-seo-cluster-content {
    margin: clamp(1.5rem, 3vw, 2.75rem) 0;
    padding: clamp(1.2rem, 3vw, 1.9rem);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.ah-seo-report-priority {
    border-left: 5px solid #2563eb;
}

.ah-editorial-review-notice {
    border-color: rgba(185, 28, 28, 0.22);
    border-left: 5px solid #b91c1c;
    background:
        linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.96));
}

.ah-seo-report-priority > :first-child,
.ah-editorial-review-notice > :first-child,
.ah-source-reference-card > :first-child,
.ah-seo-cluster-content > :first-child {
    margin-top: 0;
}

.ah-seo-report-priority > :last-child,
.ah-editorial-review-notice > :last-child,
.ah-source-reference-card > :last-child,
.ah-seo-cluster-content > :last-child {
    margin-bottom: 0;
}

.ah-seo-cluster-content {
    display: grid;
    gap: 1rem;
}

.ah-source-reference-card ul {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.ah-source-reference-card li {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.ah-source-reference-card li a {
    overflow-wrap: anywhere;
    color: #1d4ed8;
    font-weight: 750;
    text-underline-offset: 3px;
}

.ah-source-reference-card li span {
    color: #64748b;
    font-size: 0.82rem;
}

.ah-resource-cluster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ah-resource-cluster-grid > * {
    min-width: 0;
}

@media (max-width: 720px) {
    .ah-resource-cluster-grid {
        grid-template-columns: 1fr;
    }
}
