/* ========================================================================== */
/* ATA | Internal documentation                                               */
/* Reusable editorial layout for Scrum, GTD and future internal guides.       */
/* ========================================================================== */

.ai-doc-page {
    --doc-ink: #123e49;
    --doc-copy: #506f75;
    --doc-muted: #82999d;
    --doc-teal: #078f81;
    --doc-teal-dark: #075f59;
    --doc-mint: #55cd8b;
    --doc-canvas: #f3f9f7;
    --doc-soft: #eaf7f3;
    --doc-line: #d7e9e5;
    --doc-shadow: 0 16px 42px rgba(15, 67, 67, .075);
    background:
        radial-gradient(circle at 8% 5%, rgba(81, 202, 143, .06), transparent 25%),
        radial-gradient(circle at 94% 12%, rgba(28, 151, 185, .045), transparent 26%),
        var(--doc-canvas);
    color: var(--doc-copy);
    font-family: "DM Sans", "Quicksand", sans-serif;
    margin-left: -15px;
    margin-right: -15px;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 86px;
}

.ai-doc-menu-row {
    padding-bottom: 50px;
}

.ai-doc-shell {
    margin: 0 auto;
    max-width: 1540px;
    padding: 26px 34px 64px;
}

.ai-doc-hero {
    align-items: center;
    background: linear-gradient(118deg, #093f43 0%, #075854 58%, #08776d 100%);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(7, 60, 63, .15);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 178px;
    overflow: hidden;
    padding: 34px 40px;
    position: relative;
}

.ai-doc-hero::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, .065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .065) 1px, transparent 1px);
    background-size: 27px 27px;
    content: "";
    height: 270px;
    opacity: .52;
    position: absolute;
    right: -42px;
    top: -65px;
    transform: rotate(-8deg);
    width: 500px;
}

.ai-doc-hero__copy,
.ai-doc-hero__visual {
    position: relative;
    z-index: 1;
}

.ai-doc-hero__copy {
    max-width: 850px;
}

.ai-doc-eyebrow {
    color: #8be2c5;
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
}

.ai-doc-hero h1 {
    font-family: "Manrope", "Quicksand", sans-serif;
    font-size: 35px;
    font-weight: 500;
    letter-spacing: -.035em;
    margin: 8px 0 10px;
}

.ai-doc-hero p {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 760px;
}

.ai-doc-hero p strong {
    color: #fff;
    font-weight: 600;
}

.ai-doc-hero__visual {
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    display: flex;
    flex: 0 0 92px;
    font-size: 40px;
    height: 92px;
    justify-content: center;
    margin-left: 30px;
    width: 92px;
}

.ai-doc-nav {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -18px 22px 22px;
    position: relative;
    z-index: 2;
}

.ai-doc-nav__item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--doc-line);
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(15, 67, 67, .065);
    color: var(--doc-copy);
    display: flex;
    gap: 12px;
    min-height: 76px;
    padding: 13px 16px;
    text-decoration: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ai-doc-nav__item:hover {
    border-color: #afdcd3;
    box-shadow: 0 14px 30px rgba(15, 67, 67, .09);
    color: var(--doc-ink);
    transform: translateY(-2px);
}

.ai-doc-nav__item > span {
    align-items: center;
    background: var(--doc-soft);
    border-radius: 11px;
    color: var(--doc-teal);
    display: flex;
    flex: 0 0 44px;
    font-size: 18px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.ai-doc-nav__item small,
.ai-doc-nav__item strong {
    display: block;
}

.ai-doc-nav__item small {
    color: var(--doc-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 3px;
}

.ai-doc-nav__item strong {
    color: var(--doc-ink);
    font-size: 13px;
    font-weight: 600;
}

.ai-doc-nav__item--active {
    background: #e9f7f3;
    border-color: #83cfc0;
    box-shadow: 0 12px 30px rgba(7, 116, 106, .11);
}

.ai-doc-nav__item--active > span {
    background: var(--doc-teal);
    color: #fff;
}

.ai-doc-nav__item--disabled {
    cursor: default;
    opacity: .56;
}

.ai-doc-nav__item--disabled:hover {
    border-color: var(--doc-line);
    box-shadow: none;
    transform: none;
}

.ai-doc-overview {
    align-items: center;
    background: #fff;
    border: 1px solid var(--doc-line);
    border-radius: 17px;
    box-shadow: var(--doc-shadow);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.65fr);
    margin-bottom: 24px;
    min-height: 94px;
    padding: 16px 20px;
}

.ai-doc-overview__intro {
    align-items: center;
    display: flex;
    gap: 12px;
}

.ai-doc-overview__icon {
    align-items: center;
    background: var(--doc-soft);
    border-radius: 11px;
    color: var(--doc-teal);
    display: flex;
    flex: 0 0 44px;
    font-size: 17px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.ai-doc-overview__intro small,
.ai-doc-overview__intro strong {
    display: block;
}

.ai-doc-overview__intro small {
    color: var(--doc-teal);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .11em;
    margin-bottom: 3px;
}

.ai-doc-overview__intro strong {
    color: var(--doc-ink);
    font-size: 12px;
    font-weight: 600;
}

.ai-doc-overview__items {
    display: grid;
    gap: 7px 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-doc-overview__items--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ai-doc-overview__items--ten {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ai-doc-overview__items button {
    align-items: center;
    background: #f7fbfa;
    border: 1px solid #e2efec;
    border-radius: 9px;
    color: #537176;
    display: flex;
    font-size: 9px;
    gap: 7px;
    min-height: 30px;
    padding: 5px 9px;
    text-align: left;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    width: 100%;
}

.ai-doc-overview__items button:hover,
.ai-doc-overview__items button:focus {
    background: #eaf7f3;
    border-color: #a9d9d0;
    color: var(--doc-ink);
    outline: none;
    transform: translateY(-1px);
}

.ai-doc-overview__items button.is-active {
    background: #def3ed;
    border-color: #8bcfc2;
    box-shadow: inset 3px 0 0 #3db99e;
    color: var(--doc-ink);
}

.ai-doc-overview__items b {
    color: var(--doc-teal);
    font-size: 8px;
    letter-spacing: .05em;
}

.ai-doc-overview__items button.is-active b {
    color: var(--doc-teal-dark);
}

.ai-doc-content {
    margin-top: 10px;
}

.ai-doc-content > .row {
    margin-left: 0;
    margin-right: 0;
}

.ai-doc-content > .row > .col-md-12 {
    padding-left: 0;
    padding-right: 0;
}

.ai-doc-artifact-title {
    background: #fff;
    border: 1px solid var(--doc-line);
    border-radius: 15px;
    box-shadow: 0 9px 24px rgba(15, 67, 67, .055);
    margin: 11px 0;
    overflow: hidden;
    padding: 0 !important;
    scroll-margin-top: 90px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ai-doc-artifact-title:hover {
    border-color: #addbd2;
    box-shadow: 0 12px 28px rgba(15, 67, 67, .08);
}

.ai-doc-artifact-title--open {
    background: #edf8f5;
    border-color: #83cfc0;
    box-shadow: 0 12px 28px rgba(7, 116, 106, .1);
}

.ai-doc-artifact-title > .col-md-2,
.ai-doc-artifact-title > .col-md-8 > .row > .row > .col-md-2 {
    display: none !important;
}

.ai-doc-artifact-title > .col-md-8,
.ai-doc-artifact-title > .col-md-8 > .row > .row > .col-md-8 {
    float: none;
    padding: 0;
    width: 100%;
}

.ai-doc-artifact-title > .col-md-8 > .row,
.ai-doc-artifact-title > .col-md-8 > .row > .row {
    margin: 0;
}

.ai-doc-artifact-title hr {
    display: none;
}

.ai-doc-artifact-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--doc-ink) !important;
    display: flex;
    font-family: "Manrope", "Quicksand", sans-serif !important;
    font-size: 16px !important;
    gap: 11px;
    justify-content: flex-start;
    letter-spacing: -.02em;
    margin: 0;
    min-height: 60px;
    outline: none;
    padding: 13px 18px;
    text-align: left;
    width: 100%;
}

.ai-doc-artifact-toggle__marker {
    background: linear-gradient(180deg, var(--doc-mint), var(--doc-teal));
    border-radius: 999px;
    display: block;
    flex: 0 0 5px;
    height: 25px;
    width: 5px;
}

.ai-doc-artifact-toggle strong {
    flex: 1 1 auto;
    font-style: normal;
    font-weight: 600;
}

.ai-doc-artifact-toggle__chevron {
    align-items: center;
    background: var(--doc-soft);
    border-radius: 999px;
    color: var(--doc-teal);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 11px;
    height: 34px;
    justify-content: center;
    transition: background .18s ease, color .18s ease, transform .22s ease;
    width: 34px;
}

.ai-doc-artifact-title--open .ai-doc-artifact-toggle__chevron {
    background: var(--doc-teal);
    color: #fff;
    transform: rotate(180deg);
}

.ai-doc-artifact-card {
    animation: aiDocArtifactReveal .24s ease both;
    margin: 0 0 24px;
    padding-top: 0 !important;
}

@keyframes aiDocArtifactReveal {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-doc-artifact-card > .col-md-2 {
    display: none !important;
}

.ai-doc-artifact-card > .col-md-8 {
    float: none;
    padding: 0;
    width: 100%;
}

.ai-doc-artifact-card > .col-md-8 > .row {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--doc-line);
    border-radius: 19px;
    box-shadow: var(--doc-shadow);
    display: flex;
    margin: 0;
    padding: 30px;
}

.ai-doc-artifact-card > .col-md-8 > .row > .col-md-2:last-child {
    display: none;
}

.ai-doc-artifact-visual {
    flex: 0 0 170px;
    float: none;
    padding: 0 27px 0 0;
    position: sticky;
    top: 88px;
    width: 170px;
}

.ai-doc-artifact-visual > .row {
    margin: 0;
}

.ai-doc-artifact-visual > .row > .col-md-12 {
    align-items: center;
    background: linear-gradient(145deg, #f1faf7, #e5f5f1);
    border: 1px solid #c8e5df;
    border-radius: 17px;
    display: flex;
    height: 132px;
    justify-content: center;
    padding: 18px;
    width: 132px;
}

.ai-doc-artifact-visual img {
    height: auto;
    margin: 0 auto;
    max-height: 92px;
    max-width: 92px;
    object-fit: contain;
    width: auto !important;
}

.ai-doc-artifact-symbol {
    align-items: center;
    color: var(--doc-teal);
    display: flex;
    font-size: 48px;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.ai-doc-artifact-symbol i {
    filter: drop-shadow(0 8px 13px rgba(0, 111, 100, .13));
}

.ai-doc-perspective-foundations {
    background: #fff;
    border: 1px solid var(--doc-line);
    border-radius: 18px;
    box-shadow: var(--doc-shadow);
    margin: 0 0 24px;
    padding: 24px 30px 26px;
}

.ai-doc-perspective-foundations__title {
    align-items: center;
    border-bottom: 1px solid #e3efec;
    display: flex;
    gap: 13px;
    margin-bottom: 10px;
    padding-bottom: 15px;
}

.ai-doc-perspective-foundations__title span {
    align-items: center;
    background: var(--doc-soft);
    border-radius: 11px;
    color: var(--doc-teal);
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 18px;
    height: 42px;
    justify-content: center;
}

.ai-doc-perspective-foundations__title small,
.ai-doc-perspective-foundations__title strong {
    display: block;
}

.ai-doc-perspective-foundations__title small {
    color: var(--doc-teal);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .11em;
    margin-bottom: 3px;
}

.ai-doc-perspective-foundations__title strong {
    color: var(--doc-ink);
    font-size: 16px;
    font-weight: 600;
}

/* List illustrations use the same frame, with more visual presence inside it. */
.ai-doc-page--agile-lists .ai-doc-artifact-visual > .row > .col-md-12 {
    height: 188px;
    overflow: hidden;
    padding: 0;
    width: 132px;
}

.ai-doc-page--agile-lists .ai-doc-artifact-visual img {
    height: 188px;
    max-height: none;
    max-width: none;
    width: auto !important;
}

.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 {
    border-left: 1px solid #e3efec;
    flex: 1 1 auto;
    float: none;
    min-width: 0;
    padding: 0 0 0 27px;
    width: auto;
}

.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 > .row {
    border-radius: 8px;
    display: flex;
    margin-left: -7px;
    margin-right: -7px;
    padding-left: 2px;
    padding-right: 2px;
    transition: background .15s ease;
}

.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 > .row > .col-md-1 {
    flex: 0 0 32px;
    float: none;
    padding: 9px 4px 4px !important;
    width: 32px;
}

.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 > .row > .col-md-2 {
    flex: 0 0 64px;
    float: none;
    padding: 0 !important;
    width: 64px;
}

.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 > .row > .col-md-9,
.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 > .row > .col-md-10,
.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 > .row > .col-md-11 {
    flex: 1 1 auto;
    float: none;
    min-width: 0;
    padding: 6px 2px 4px 5px !important;
    width: auto;
}

.ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 > .row:hover {
    background: #f8fbfa;
}

.ai-doc-artifact-card .css-text-medium {
    color: var(--doc-copy) !important;
    display: block;
    font-family: "DM Sans", "Quicksand", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.62;
    margin: 0;
}

.ai-doc-artifact-card .css-text-medium b,
.ai-doc-artifact-card .css-text-medium strong {
    color: var(--doc-ink);
    font-weight: 600;
}

.ai-doc-artifact-card i.fa-circle {
    color: var(--doc-teal) !important;
}

.ai-doc-artifact-card i.fa-angle-right {
    color: #58aa9d !important;
}

.ai-agile-doc-points {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-agile-doc-process {
    background: #fff;
    border: 1px solid var(--doc-line);
    border-radius: 19px;
    box-shadow: var(--doc-shadow);
    margin: 0 0 24px;
    overflow: hidden;
    padding: 0;
}

.ai-agile-doc-process figcaption {
    align-items: center;
    background: #f7fbfa;
    border-bottom: 1px solid #e1efec;
    display: flex;
    gap: 12px;
    padding: 15px 20px;
}

.ai-agile-doc-process__icon {
    align-items: center;
    background: var(--doc-soft);
    border-radius: 11px;
    color: var(--doc-teal);
    display: flex;
    flex: 0 0 42px;
    font-size: 17px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ai-agile-doc-process figcaption small,
.ai-agile-doc-process figcaption strong {
    display: block;
}

.ai-agile-doc-process figcaption small {
    color: var(--doc-teal);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .11em;
    margin-bottom: 3px;
}

.ai-agile-doc-process figcaption strong {
    color: var(--doc-ink);
    font-size: 13px;
    font-weight: 600;
}

.ai-agile-doc-process__image {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 30px 34px 34px;
}

.ai-agile-doc-process__image img {
    display: block;
    height: auto;
    max-height: 301px;
    max-width: 64%;
    object-fit: contain;
    width: auto;
}

.ai-agile-doc-points .ai-guide-point {
    align-items: start;
    color: var(--doc-copy);
    display: grid;
    font-family: "DM Sans", "Quicksand", sans-serif;
    font-size: 13px;
    grid-template-columns: 18px minmax(0, 1fr);
    line-height: 1.62;
    padding: 6px 4px;
}

.ai-agile-doc-points .ai-guide-point:hover {
    background: #f8fbfa;
    border-radius: 8px;
}

.ai-agile-doc-points .ai-guide-point-node {
    background: var(--doc-teal);
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #8acfc2;
    display: block;
    height: 7px;
    margin: 7px auto 0;
    width: 7px;
}

.ai-agile-doc-points .ai-guide-point--level-2 {
    margin-left: 32px;
}

.ai-agile-doc-points .ai-guide-point--level-2 .ai-guide-point-node {
    background: #fff;
}

.ai-agile-doc-points .ai-guide-point--note {
    background: #eff8f5;
    border-radius: 8px;
}

.ai-agile-doc-points b,
.ai-agile-doc-points strong {
    color: var(--doc-ink);
    font-weight: 600;
}

.ai-agile-doc-points .ai-guide-point-detail {
    color: #607a7f;
}

.ai-doc-category-title {
    margin: 52px 0 10px;
    padding-top: 0 !important;
}

.ai-doc-category-title > .col-md-2,
.ai-doc-category-title > .col-md-8 > .row > .row > .col-md-2 {
    display: none !important;
}

.ai-doc-category-title > .col-md-8,
.ai-doc-category-title > .col-md-8 > .row > .row > .col-md-8 {
    float: none;
    padding: 0;
    width: 100%;
}

.ai-doc-category-title .row {
    margin: 0;
}

.ai-doc-category-title hr {
    display: none;
}

.ai-doc-category-title label {
    color: var(--doc-teal-dark) !important;
    display: block;
    font-family: "Manrope", "Quicksand", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .14em;
    margin: 0;
    text-align: left;
    text-transform: uppercase;
}

.ai-doc-category-copy {
    background: #eaf7f3;
    border: 1px solid #cde6e0;
    border-radius: 14px;
    margin: 0;
    padding: 16px 20px;
    width: 100%;
}

.ai-doc-category-copy p {
    color: #41666b !important;
    font-family: "DM Sans", "Quicksand", sans-serif;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    text-indent: 0 !important;
    width: 100%;
}

.ai-doc-artifact-card--last {
    margin-bottom: 0;
    padding-bottom: 0 !important;
}

@media (max-width: 991px) {
    .ai-doc-shell {
        padding: 22px 22px 56px;
    }

    .ai-doc-overview {
        grid-template-columns: 1fr;
    }

    .ai-doc-overview__items--five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ai-doc-overview__items--ten {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ai-doc-artifact-card > .col-md-8 > .row {
        display: flex;
        padding: 24px;
    }

    .ai-doc-artifact-visual {
        display: block;
        flex-basis: 145px;
        padding-right: 22px;
        position: static;
        width: 145px;
    }

    .ai-doc-artifact-visual > .row > .col-md-12 {
        height: 112px;
        width: 112px;
    }

    .ai-doc-artifact-visual img {
        max-height: 78px;
        max-width: 78px;
    }

    .ai-doc-page--agile-lists .ai-doc-artifact-visual > .row > .col-md-12 {
        height: 160px;
        padding: 0;
        width: 112px;
    }

    .ai-doc-page--agile-lists .ai-doc-artifact-visual img {
        height: 160px;
        max-height: none;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .ai-doc-page {
        padding-bottom: 52px;
    }

    .ai-doc-shell {
        padding: 14px 15px 40px;
    }

    .ai-doc-hero {
        align-items: flex-start;
        min-height: 0;
        padding: 28px 25px;
    }

    .ai-doc-hero h1 {
        font-size: 29px;
    }

    .ai-doc-hero__visual {
        display: none;
    }

    .ai-doc-nav {
        grid-template-columns: 1fr;
        margin: -12px 12px 18px;
    }

    .ai-doc-nav__item {
        min-height: 66px;
    }

    .ai-doc-overview__items {
        grid-template-columns: 1fr 1fr;
    }

    .ai-doc-overview__items--five {
        grid-template-columns: 1fr 1fr;
    }

    .ai-doc-overview__items--ten {
        grid-template-columns: 1fr 1fr;
    }

    .ai-doc-artifact-title {
        margin-top: 10px;
    }

    .ai-doc-artifact-toggle {
        font-size: 15px !important;
    }

    .ai-doc-artifact-card > .col-md-8 > .row {
        display: block;
        padding: 20px 17px;
    }

    .ai-doc-artifact-visual {
        margin-bottom: 20px;
        padding: 0;
        width: 100%;
    }

    .ai-doc-artifact-visual > .row > .col-md-12 {
        height: 104px;
        width: 104px;
    }

    .ai-doc-page--agile-lists .ai-doc-artifact-visual img {
        height: 148px;
        max-height: none;
        max-width: none;
    }

    .ai-doc-page--agile-lists .ai-doc-artifact-visual > .row > .col-md-12 {
        height: 148px;
        width: 104px;
    }

    .ai-doc-artifact-card > .col-md-8 > .row > .col-md-8 {
        border-left: 0;
        border-top: 1px solid #e3efec;
        padding: 18px 0 0;
        width: 100%;
    }

    .ai-doc-artifact-card .css-text-medium {
        font-size: 12px !important;
        text-align: left !important;
    }

    .ai-agile-doc-points .ai-guide-point {
        font-size: 12px;
    }

    .ai-agile-doc-points .ai-guide-point--level-2 {
        margin-left: 22px;
    }

    .ai-agile-doc-process__image {
        padding: 22px 16px 26px;
    }
}

@media (max-width: 480px) {
    .ai-doc-overview__items {
        grid-template-columns: 1fr;
    }
}
