/* ══════════════════════════════════════════════════════════════
   academy.css: Academy (/academy), the persona pages (/for-users,
   /for-builders, /for-admins, /for-leaders) and the _Contribute partial.

   Page-scoped like tv.css: not in custom.css, not minified. Each view
   that uses these classes loads it in @section styles, so a page that
   adds @await Html.PartialAsync("_Contribute") must load it too.
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   Academy (/academy) and the persona pages (/for-users, ...)
   Markup: Views/Home/academy.cshtml, Views/Shared/_AcademyPersona.cshtml,
           Views/Shared/_AcademyTopicList.cshtml

   /academy: plain page title, a row of four role cards, four zig-zag
   learning rows (CSS-only visuals), then the community section.
   Persona page: one row with the intro side (big icon,
   heading, paragraph, Siesta TV tile) and a vertical topic list.
   ══════════════════════════════════════════════════════════════ */

/* ── Persona cards (/academy) ── */
.acd-persona {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid rgba(6, 6, 73, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    color: #060649;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.acd-persona:hover {
    color: #060649;
    border-color: rgba(6, 6, 73, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 1.25rem 2.5rem -1rem rgba(6, 6, 73, 0.3);
}

/* Bare navy glyph, no tile: the card border already frames it. */
.acd-persona-icon {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #060649;
    font-size: 2.5rem;
    line-height: 1;
}

.acd-persona-title {
    margin-bottom: 0.5rem;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.25;
}

.acd-persona-desc {
    flex-grow: 1;
    color: rgba(6, 6, 73, 0.72);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.acd-persona-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.acd-persona-cta i {
    transition: transform .2s ease;
}

.acd-persona:hover .acd-persona-cta i {
    transform: translateX(3px);
}

/* ── Learning rows (/academy) ──
   One zig-zag row per way to learn: a visual on one side, text and a
   button on the other, alternating. Every visual is pure CSS and shares
   the 16:10 stage (.acd-visual) except the player, which is 16:9. */
.acd-learn {
    padding-top: 2rem;
}

.acd-zz + .acd-zz {
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .acd-learn {
        padding-top: 3.5rem;
    }

    .acd-zz + .acd-zz {
        margin-top: 5rem;
    }

    .acd-zz-text {
        max-width: 30rem;
    }
}

.acd-zz-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(6, 6, 73, 0.6);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.acd-zz-kicker i {
    font-size: 1.125rem;
}

.acd-zz-title {
    margin-bottom: 1rem;
    color: #060649;
    font-size: calc(1.5rem + 0.9vw);
}

@media (min-width: 1200px) {
    .acd-zz-title {
        font-size: 2.25rem;
    }
}

.acd-zz-desc {
    margin-bottom: 1.75rem;
    color: rgba(6, 6, 73, 0.72);
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* Shared stage for the illustrated visuals. */
.acd-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 1.5rem;
    background: radial-gradient(120% 120% at 0% 0%, #eef0ff 0%, #f6f6fb 55%, #ecebf8 100%);
    color: #060649;
    text-decoration: none;
}

.acd-visual:hover {
    color: #060649;
}

/* ── TV: a video player ── */
.acd-player {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.5rem;
    background: radial-gradient(120% 120% at 20% 10%, #2a2a8a 0%, #060649 60%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2rem 4rem -1.5rem rgba(6, 6, 73, 0.55);
    isolation: isolate;
}

.acd-player:hover {
    color: #fff;
}

.acd-player-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s ease, filter .4s ease;
}

.acd-player:hover .acd-player-bg {
    transform: scale(1.04);
    filter: saturate(1.1);
}

.acd-player-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 6, 73, 0.45) 0%, rgba(6, 6, 73, 0.15) 35%, rgba(6, 6, 73, 0.2) 55%, rgba(6, 6, 73, 0.85) 100%);
    transition: background-color .3s ease;
}

.acd-player:hover .acd-player-shade {
    background-color: rgba(6, 6, 73, 0.15);
}

.acd-player-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acd-player-badge,
.acd-player-time {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 0.8125rem;
}

.acd-player-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: #fff;
    color: #060649;
    font-size: 2rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 1rem 2.5rem -0.5rem rgba(0, 0, 0, 0.45);
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

/* The play glyph sits slightly left of its box; nudge it to look centred. */
.acd-player-play i {
    margin-left: 0.25rem;
}

/* Soft pulse ring, on hover only so the page is calm at rest. */
.acd-player-play::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
}

.acd-player:hover .acd-player-play,
.acd-player:focus-visible .acd-player-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #060649;
    color: #fff;
}

.acd-player:hover .acd-player-play::before {
    animation: acd-pulse 1.4s ease-out infinite;
}

@keyframes acd-pulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.acd-player-bottom {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.acd-player-title {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.acd-player-bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.acd-player-bar span {
    display: block;
    width: 28%;
    height: 100%;
    border-radius: 2px;
    background: #fff;
    transition: width .8s ease;
}

.acd-player:hover .acd-player-bar span {
    width: 42%;
}

.acd-player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    opacity: .85;
}

.acd-player-spacer {
    flex-grow: 1;
}

/* ── Docs: a documentation window ── */
.acd-docs-window {
    display: flex;
    flex-direction: column;
    width: 78%;
    height: 76%;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1.5rem 3rem -1rem rgba(6, 6, 73, 0.3);
    overflow: hidden;
    transition: transform .35s ease;
}

.acd-docs:hover .acd-docs-window {
    transform: translateY(-6px) rotate(-0.5deg);
}

.acd-docs-chrome {
    display: flex;
    gap: 0.375rem;
    padding: 0.75rem 0.875rem 0;
}

.acd-docs-chrome span {
    width: 0.5625rem;
    height: 0.5625rem;
    border-radius: 50%;
    background: rgba(6, 6, 73, 0.14);
}

.acd-docs-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0.875rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(6, 6, 73, 0.05);
    color: rgba(6, 6, 73, 0.45);
    font-size: 0.875rem;
}

.acd-docs-search span {
    width: 40%;
    height: 0.4375rem;
    border-radius: 4px;
    background: rgba(6, 6, 73, 0.12);
}

.acd-docs-body {
    display: flex;
    flex-grow: 1;
    gap: 1rem;
    padding: 0 0.875rem 0.875rem;
    min-height: 0;
}

.acd-docs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 26%;
    padding-right: 0.875rem;
    border-right: 1px solid rgba(6, 6, 73, 0.08);
}

.acd-docs-nav span {
    height: 0.4375rem;
    border-radius: 4px;
    background: rgba(6, 6, 73, 0.1);
}

.acd-docs-nav span:nth-child(2n) {
    width: 75%;
}

.acd-docs-nav .is-active {
    background: #060649;
}

.acd-docs-page {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    min-width: 0;
}

.acd-docs-h {
    width: 55%;
    height: 0.875rem;
    margin-bottom: 0.25rem;
    border-radius: 5px;
    background: #060649;
}

.acd-docs-p {
    height: 0.4375rem;
    border-radius: 4px;
    background: rgba(6, 6, 73, 0.1);
}

.acd-docs-p--short {
    width: 70%;
}

.acd-docs-code {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    margin: 0.25rem 0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #060649;
}

.acd-docs-code span {
    height: 0.375rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.acd-docs-code span:nth-child(1) { width: 60%; background: rgba(255, 255, 255, 0.7); }
.acd-docs-code span:nth-child(2) { width: 80%; margin-left: 1rem; }
.acd-docs-code span:nth-child(3) { width: 45%; }

.acd-docs-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 0.75rem 1.5rem -0.5rem rgba(6, 6, 73, 0.3);
    transition: transform .35s ease;
}

.acd-docs-chip--a {
    top: 14%;
    right: 6%;
}

.acd-docs-chip--b {
    bottom: 12%;
    left: 5%;
}

.acd-docs:hover .acd-docs-chip--a { transform: translate(4px, -4px); }
.acd-docs:hover .acd-docs-chip--b { transform: translate(-4px, 4px); }

/* ── Agent: a listening voice orb ── */
.acd-voice {
    flex-direction: column;
    gap: 1.5rem;
    background: radial-gradient(90% 90% at 50% 40%, #2a2a8a 0%, #060649 70%);
    color: #fff;
}

.acd-voice:hover {
    color: #fff;
}

.acd-voice-bubble {
    max-width: 80%;
    padding: 0.625rem 1rem;
    border-radius: 1rem 1rem 1rem 0.25rem;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9375rem;
}

.acd-voice-orb {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: #fff;
    color: #060649;
    font-size: 2.25rem;
    transition: transform .25s ease;
}

.acd-voice:hover .acd-voice-orb {
    transform: scale(1.08);
}

.acd-voice-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: acd-pulse 2.4s ease-out infinite;
}

.acd-voice-ring--2 {
    animation-delay: 1.2s;
}

.acd-voice-wave {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    height: 2.5rem;
}

.acd-voice-wave span {
    width: 0.3125rem;
    height: 100%;
    border-radius: 3px;
    background: #fff;
    transform: scaleY(.25);
    animation: acd-wave 1.2s ease-in-out infinite;
}

.acd-voice-wave span:nth-child(3n)   { animation-delay: -.3s; }
.acd-voice-wave span:nth-child(3n+1) { animation-delay: -.7s; }
.acd-voice-wave span:nth-child(4n)   { animation-delay: -1s; animation-duration: 1s; }
.acd-voice-wave span:nth-child(5n)   { animation-delay: -.5s; animation-duration: 1.4s; }

@keyframes acd-wave {
    0%, 100% { transform: scaleY(.25); }
    50% { transform: scaleY(1); }
}

/* ── Live training: a booking card ── */
.acd-book-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 72%;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1.5rem 3rem -1rem rgba(6, 6, 73, 0.3);
    transition: transform .35s ease;
}

.acd-book:hover .acd-book-card {
    transform: translateY(-6px);
}

.acd-book-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.acd-book-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #060649;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.acd-book-lines {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    flex-grow: 1;
}

.acd-book-lines span {
    height: 0.5rem;
    border-radius: 4px;
    background: rgba(6, 6, 73, 0.12);
}

.acd-book-lines span:first-child {
    width: 60%;
    background: #060649;
}

.acd-book-lines span:last-child {
    width: 40%;
}

.acd-book-days,
.acd-book-slots {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-align: center;
}

.acd-book-days {
    grid-template-columns: repeat(5, 1fr);
    color: rgba(6, 6, 73, 0.55);
}

.acd-book-days span {
    padding: 0.375rem 0;
    border-radius: 0.5rem;
}

.acd-book-slots {
    grid-template-columns: repeat(3, 1fr);
}

.acd-book-slots span {
    padding: 0.5rem 0;
    border: 1px solid rgba(6, 6, 73, 0.12);
    border-radius: 0.5rem;
}

.acd-book-days .is-active,
.acd-book-slots .is-active {
    border-color: #060649;
    background: #060649;
    color: #fff;
}

.acd-book-confirm {
    position: absolute;
    right: 6%;
    bottom: 10%;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: #fff;
    color: #1a8f5a;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 0.75rem 1.5rem -0.5rem rgba(6, 6, 73, 0.3);
    transition: transform .35s ease;
}

.acd-book:hover .acd-book-confirm {
    transform: translateY(-4px);
}

/* Small screens: shrink the illustrations' type so nothing wraps awkwardly. */
@media (max-width: 575.98px) {
    .acd-visual {
        aspect-ratio: 4 / 3;
    }

    .acd-player-play,
    .acd-voice-orb {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }

    .acd-player-title,
    .acd-voice-bubble {
        font-size: 0.875rem;
    }

    .acd-player-controls {
        display: none;
    }

    .acd-docs-window,
    .acd-book-card {
        width: 86%;
    }

    .acd-book-card {
        gap: 0.625rem;
        padding: 0.875rem;
    }

    .acd-book-days,
    .acd-book-slots {
        font-size: 0.6875rem;
    }

    .acd-docs-chip,
    .acd-book-confirm {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acd-voice-ring,
    .acd-voice-wave span,
    .acd-player:hover .acd-player-play::before {
        animation: none;
    }
}

.acd-row-title {
    margin-bottom: 2.5rem;
    color: #060649;
    font-size: 1.5rem;
}

/* ── Persona page ──
   The page opens straight into the persona row, so it clears the fixed
   header itself (same offset as _UseCaseHero). */
.acd-persona-page {
    margin-top: 150px;
}

/* Clears the sticky header when an anchor lands on the contribute section. */
#community {
    scroll-margin-top: 96px;
}

/* Contribute (_Contribute partial): same grey as .footer in theme.css, so
   it runs straight into the footer below it. */
.acd-contribute {
    background-color: hsl(230 25% 96.5%);
}

/* Bootstrap's scale stops at py-5 (3rem), which is tight for full-width
   sections on a desktop. */
@media (min-width: 992px) {
    .acd-sec {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* ── Intro side ── */
.acd-sec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    background: #060649;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    box-shadow: 0 1rem 2rem -0.75rem rgba(6, 6, 73, 0.45);
}

.acd-sec-title {
    margin-bottom: 1rem;
    color: #060649;
    font-size: calc(1.5rem + 1.2vw);
}

@media (min-width: 1200px) {
    .acd-sec-title {
        font-size: 2.5rem;
    }
}

.acd-sec-desc {
    margin-bottom: 0;
    color: rgba(6, 6, 73, 0.72);
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* Siesta TV tile: the one dark element per section, so it reads as
   "watch" rather than as another topic in the list. */
.acd-tv {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 1.25rem 1rem 1rem;
    border-radius: 1rem;
    background: #060649;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.acd-tv:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.5rem -0.75rem rgba(6, 6, 73, 0.5);
}

.acd-tv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #fff;
    color: #060649;
    font-size: 1.375rem;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.acd-tv:hover .acd-tv-icon {
    transform: scale(1.06);
}

.acd-tv-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}

.acd-tv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.125rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.acd-tv-title {
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.acd-tv-desc {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    line-height: 1.5;
}

.acd-tv-arrow {
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.acd-tv:hover .acd-tv-arrow {
    transform: translateX(3px);
}

/* ── Topic list ──
   Title-only rows inside one white panel: no paragraph per topic, the
   destination page does the explaining. */
.acd-list {
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    border: 1px solid rgba(6, 6, 73, 0.1);
    border-radius: 1.25rem;
    background: #fff;
}

.acd-list li + li {
    border-top: 1px solid rgba(6, 6, 73, 0.07);
}

.acd-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    color: #060649;
    text-decoration: none;
    transition: background-color .2s ease;
}

.acd-item:hover {
    background: rgba(6, 6, 73, 0.04);
    color: #060649;
}

.acd-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(6, 6, 73, 0.06);
    color: #060649;
    font-size: 1.375rem;
    flex-shrink: 0;
    transition: background-color .2s ease, color .2s ease;
}

.acd-item:hover .acd-item-icon {
    background: #060649;
    color: #fff;
}

.acd-item-title {
    flex-grow: 1;
    min-width: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.35;
}

.acd-item-meta {
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    background: rgba(6, 6, 73, 0.05);
    color: rgba(6, 6, 73, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.acd-item-arrow {
    color: rgba(6, 6, 73, 0.35);
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: transform .2s ease, color .2s ease;
}

.acd-item:hover .acd-item-arrow {
    color: #060649;
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .acd-sec-icon {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.875rem;
    }

    .acd-item {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .acd-item-meta {
        display: none;
    }
}
