/* ============================================================
   About / history — one unified article (no archive/new split)
   Scoped to .page-about-story
   ============================================================ */

.page-about-story {
    --story-bg: #faf6f8;
    --story-surface: #ffffff;
    --story-ink: #1c1418;
    --story-muted: #6b5c64;
    --story-line: rgba(133, 0, 62, 0.12);
    --story-accent: #85003e;
    --story-accent-soft: rgba(133, 0, 62, 0.1);
    --story-radius: 12px;
    background: var(--story-bg);
    font-family: var(--font-body), "IRANSans", Tahoma, Arial, sans-serif;
}

.page-about-story,
.page-about-story *,
.page-about-story h1,
.page-about-story h2,
.page-about-story h3,
.page-about-story h4,
.page-about-story .story-hero__title,
.page-about-story .story-hero__kicker,
.page-about-story .cms-prose-block,
.page-about-story .aryan-legacy-content,
.page-about-story .cms-fancy-box-text,
.page-about-story .aryan-next,
.page-about-story .aryan-next__title,
.page-about-story .aryan-next__links a {
    font-family: var(--font-body), "IRANSans", Tahoma, Arial, sans-serif !important;
}

body:has(.page-about-story) {
    background: var(--story-bg);
}

/* ---- One surface ---- */

.story-content--unified {
    padding: 36px 0 72px;
}

.story-unified {
    max-width: 52rem;
    margin-inline: auto;
    background: var(--story-surface);
    border: 1px solid var(--story-line);
    border-radius: var(--story-radius);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.story-unified__head {
    padding: clamp(22px, 4vw, 32px) clamp(22px, 4vw, 36px) 0;
    text-align: center;
}

.story-hero__kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--story-accent-soft);
    color: var(--story-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.story-hero__title {
    margin: 0 0 8px;
    color: var(--story-ink);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.about-story-stack {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
}

.about-story-stack > * {
    min-width: 0;
}

/* Flatten CMS wrappers — no second card inside the article */
.page-about-story .cms-item--content .cms-item__header {
    display: none;
}

.page-about-story .cms-item--content,
.page-about-story .cms-item--content .cms-item__inner,
.page-about-story .cms-fancy-box-wrapper,
.page-about-story .cms-fancy-box,
.page-about-story .cms-fancy-box__body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-about-story .cms-fancy-box::before,
.page-about-story .cms-fancy-box__accent {
    display: none !important;
}

.page-about-story .cms-fancy-box-text,
.page-about-story .cms-prose-block,
.page-about-story .aryan-legacy-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: clamp(8px, 2vw, 12px) clamp(22px, 4vw, 36px) clamp(8px, 2vw, 16px) !important;
    color: var(--story-muted);
    font-size: 1rem;
    line-height: 2;
}

.page-about-story .cms-fancy-box-text p,
.page-about-story .cms-prose-block p,
.page-about-story .aryan-legacy-content p {
    margin: 0 0 1rem;
    text-align: justify;
}

.page-about-story .cms-fancy-box-text p:first-child,
.page-about-story .institute-history > p:first-of-type {
    color: var(--story-ink);
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 600;
    line-height: 1.9;
}

.page-about-story .cms-prose-block h2,
.page-about-story .cms-prose-block h3,
.page-about-story .aryan-legacy-content h2,
.page-about-story .aryan-legacy-content h3 {
    color: var(--story-ink);
    font-weight: 800;
    line-height: 1.45;
    margin: 1.5rem 0 0.65rem;
}

.page-about-story .story-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 0.25rem 0 1.35rem;
    padding: 18px 0 0;
    border-top: 1px dashed var(--story-line);
    list-style: none;
}

.page-about-story .story-highlights li {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--story-accent-soft);
    color: var(--story-ink);
    font-size: 14px;
    line-height: 1.7;
}

.page-about-story .story-highlights strong {
    display: block;
    margin-bottom: 4px;
    color: var(--story-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.page-about-story .history-figure {
    margin: 0 0 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--story-line);
    background: #f3e8ed;
}

.page-about-story .history-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center center;
}

/* Next steps inside the same article */
.page-about-story .aryan-next--inline {
    margin: 0;
    border: 0;
    border-top: 1px dashed var(--story-line);
    border-radius: 0;
    background: transparent;
    padding: clamp(18px, 3vw, 24px) clamp(22px, 4vw, 36px) clamp(22px, 4vw, 32px);
}

@media (max-width: 767px) {
    .story-content--unified {
        padding: 22px 0 48px;
    }

    .page-about-story .story-highlights {
        grid-template-columns: 1fr;
    }
}
