/* Our Story — certificate presentation (shares cert-* with whitepaper.css) */

.page-story {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(88, 86, 214, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 100%, rgba(255, 184, 77, 0.07) 0%, transparent 50%),
        var(--bg-deep);
}

.page-story main {
    max-width: none;
    margin: 0;
    padding: calc(var(--header-height) + 1.25rem) 1.25rem 4rem;
}

.cert-toolbar,
.story-toolbar {
    max-width: 860px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: flex-end;
}

.page-story .btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    border: none;
}

.page-story .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-bright);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}

.page-story .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Story-specific certificate content */
.cert-pullquote {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid #c9a227;
    background: rgba(201, 162, 39, 0.07);
    font-style: italic;
    color: #3d3d48;
    font-size: 0.93rem;
    line-height: 1.6;
}

.cert-name-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin: 0.5rem 0 0.65rem;
}

.cert-name-card {
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
}

.cert-name-card strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #8a7340;
    margin-bottom: 0.3rem;
}

.cert-name-card span {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #3d3d48;
}

/* Section 04 — marginal heraldic illustration */
.cert-section-content--mascot {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    column-gap: 1.15rem;
    align-items: start;
}

.cert-section-content--mascot h2 {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.4rem;
}

.cert-mascot-aside {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0.1rem;
}

.cert-mascot-aside figure {
    margin: 0;
    text-align: center;
    width: 78px;
    padding: 0.75rem 0.55rem 0.65rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 244, 236, 0.92) 100%);
    border: 1px solid rgba(201, 162, 39, 0.42);
    border-radius: 3px;
    box-shadow:
        inset 0 0 0 4px rgba(201, 162, 39, 0.07),
        0 3px 10px rgba(0, 0, 0, 0.07);
    position: relative;
}

.cert-mascot-aside figure::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(201, 162, 39, 0.28);
    pointer-events: none;
}

.cert-mascot-aside figcaption {
    margin-top: 0.4rem;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7340;
    line-height: 1.25;
}

.cert-mascot-body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.cert-mascot {
    width: 54px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.cert-seal img {
    object-fit: contain;
}

.cert-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin: 0.5rem 0 0.65rem;
}

.cert-triple-item {
    text-align: center;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 6px;
    padding: 0.75rem 0.5rem;
}

.cert-triple-word {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #8a7340;
}

.cert-triple-arrow {
    color: #c9a227;
    margin: 0.2rem 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.cert-triple-desc {
    font-size: 0.84rem;
    line-height: 1.4;
    color: #3d3d48;
}

@media (max-width: 640px) {
    .cert-name-grid,
    .cert-triple {
        grid-template-columns: 1fr;
    }

    .cert-section-content--mascot {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .cert-mascot-aside {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        margin: 0 0 0.35rem;
    }

    .cert-mascot-aside figure {
        width: 68px;
        padding: 0.55rem 0.45rem 0.5rem;
    }

    .cert-mascot-body {
        grid-row: 3;
    }

    .cert-mascot {
        width: 46px;
    }
}
