/* Warriors Academy — main page content (.content only) */

.content {
    --content-pad-y: clamp(48px, 6vw, 80px);
    --content-prose-size: clamp(1rem, 1.05vw, 1.0625rem);
    --content-prose-leading: 1.72;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: var(--content-pad-y) var(--site-inline-pad, 24px);
    box-sizing: border-box;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--content-prose-size);
    line-height: var(--content-prose-leading);
}

.header.sticky + .content {
    padding-top: 110px;
}

/* Main copy empty — content boxes become the page body */
.content.content_main_empty {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header.sticky + .content.content_main_empty {
    padding-top: 0;
}

/* Route owns its full-width layout (e.g. programme pages) */
.content.content_flush {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.error_page_link,
.error_page_image {
    display: block;
    width: 100%;
}
.error_page_image {
    height: auto;
}

.header.sticky + .content.content_flush {
    padding-top: 0;
}

.content .jump_anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Page intro (header + sub-header) ---- */
.content_h2_header {
    margin: 0 0 10px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-transform: uppercase;
}

.content_h2_header::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--gradient-cta);
    animation: contentAccentGrow 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.25s;
}

.content_h2_header_left {
    text-align: left;
}

.content_h2_header_left::after {
    margin-right: auto;
}

.content_h2_header_center {
    text-align: center;
}

.content_h2_header_center::after {
    margin-left: auto;
    margin-right: auto;
}

.content_h2_sub_header {
    margin: 0 0 clamp(24px, 3.5vw, 36px);
    color: var(--color-orange-deep);
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.content_h2_sub_header_left {
    text-align: left;
}

.content_h2_sub_header_center {
    text-align: center;
}

.content_h2_sub_header + .content_body,
.content_h2_header:last-of-type + .content_body {
    margin-top: 0;
}

.content_h2_header:not(:has(+ .content_h2_sub_header)) {
    margin-bottom: clamp(24px, 3.5vw, 36px);
}

/* ---- WYSIWYG body copy ---- */
.content_body {
    width: 100%;
    max-width: none;
    color: var(--color-text-muted);
}

.content_body > :first-child {
    margin-top: 0;
}

.content_body > :last-child {
    margin-bottom: 0;
}

.content_body p {
    margin: 0 0 1.15em;
    text-align: justify;
}

/* Small screens: left-aligned */
@media screen and (max-width: 560px) {
    .content_body p {
        text-align: left;
    }
}

.content_body h1,
.content_body h2,
.content_body h3,
.content_body h4,
.content_body h5,
.content_body h6 {
    margin: 1.6em 0 0.65em;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.content_body h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.content_body h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.content_body h4,
.content_body h5,
.content_body h6 {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.content_body a {
    color: var(--color-orange-deep);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(var(--color-orange-rgb), 0.35);
    text-underline-offset: 0.18em;
    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.content_body a:hover,
.content_body a:focus-visible {
    color: var(--color-orange);
    text-decoration-color: currentColor;
    outline: none;
}

.content_body strong,
.content_body b {
    color: var(--color-text);
    font-weight: 700;
}

.content_body ul,
.content_body ol {
    margin: 0 0 1.15em;
    padding-left: 1.35em;
}

.content_body li {
    margin: 0.35em 0;
}

.content_body ul li::marker {
    color: var(--color-orange);
}

.content_body ol li::marker {
    color: var(--color-schools);
    font-weight: 700;
}

.content_body blockquote {
    margin: 1.5em 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-orange);
    border-radius: 0 var(--radius-ui) var(--radius-ui) 0;
    background: var(--color-surface-warm);
    color: var(--color-text);
    font-style: italic;
}

.content_body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(var(--color-ink-rgb), 0.12);
}

.content_body table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: 0.95em;
    overflow-x: auto;
    display: block;
}

.content_body th,
.content_body td {
    padding: 0.65em 0.85em;
    border: 1px solid var(--color-border);
    text-align: left;
}

.content_body th {
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
}

.content_body hr {
    margin: 2em 0;
    border: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-border) 18%,
        var(--color-border) 82%,
        transparent
    );
}

/* Stagger inner blocks when AOS reveals the wrapper */
.content_body.aos-animate > * {
    animation: contentBlockIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.content_body.aos-animate > *:nth-child(2) {
    animation-delay: 0.06s;
}

.content_body.aos-animate > *:nth-child(3) {
    animation-delay: 0.12s;
}

.content_body.aos-animate > *:nth-child(4) {
    animation-delay: 0.18s;
}

.content_body.aos-animate > *:nth-child(n + 5) {
    animation-delay: 0.24s;
}

@keyframes contentAccentGrow {
    to {
        width: clamp(56px, 8vw, 88px);
    }
}

@keyframes contentBlockIn {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media screen and (max-width: 1080px) {
    .content {
        --content-pad-y: clamp(36px, 6vw, 56px);
    }
}

@media screen and (max-width: 767px) {
    .content {
        --content-pad-y: clamp(28px, 7vw, 40px);
    }

    .header.sticky + .content {
        padding-top: 96px;
    }

    .header.sticky + .content.content_main_empty {
        padding-top: 0;
    }

    .content_h2_header {
        letter-spacing: 0.04em;
    }

    .content_h2_sub_header {
        letter-spacing: 0.08em;
    }
}

@media screen and (max-width: 560px) {
    .content {
        --content-pad-y: clamp(24px, 7vw, 32px);
    }
}

@media screen and (max-width: 440px) {
    .content {
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content_h2_header::after,
    .content_body.aos-animate > * {
        animation: none;
    }

    .content_h2_header::after {
        width: clamp(56px, 8vw, 88px);
    }
}
