
/* WAMA-08B Autonomous Graphic Engine */

.rd-slider {
    position: relative;
    overflow: hidden;
    background: var(--green-dark,#123d2d);
    color: white;
}

.rd-slide {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 560px;
    isolation: isolate;
}

.rd-slide[hidden] {
    display: none !important;
}

.rd-slide-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -3;
    animation: rd-photo-in .8s ease both;
}

.rd-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        90deg,
        rgba(9,31,21,.94) 0%,
        rgba(9,31,21,.79) 35%,
        rgba(9,31,21,.43) 68%,
        rgba(9,31,21,.16) 100%
    );
}

.rd-slide-content {
    position: relative;
    width: 100%;
    padding-block: 80px 100px;
}

.rd-slide-copy {
    max-width: 760px;
    animation: rd-content-in .65s ease both;
}

.rd-kicker {
    display: inline-block;
    color: var(--gold,#d4b66e);
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 20px;
}

.rd-slide h1,
.rd-slide h2 {
    color: white;
    font-size: clamp(30px,4.1vw,58px);
    line-height: 1.17;
    margin: 0 0 24px;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.rd-slide p {
    color: #eef5ef;
    font-size: 17px;
    line-height: 1.7;
    max-width: 670px;
    margin-bottom: 28px;
}

.rd-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rd-primary,
.rd-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s,background .2s;
}

.rd-primary {
    background: var(--gold,#d4b66e);
    color: #123d2d;
}

.rd-secondary {
    border: 1px solid #ffffff80;
    color: white;
    background: #ffffff0c;
}

.rd-primary:hover,
.rd-secondary:hover {
    transform: translateY(-2px);
    color: #123d2d;
    background: white;
}

.rd-controls {
    position: absolute;
    bottom: 26px;
    right: max(20px,calc((100% - 1180px)/2));
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.rd-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ffffff60;
    background: #142e22a0;
    color: white;
    font: inherit;
    cursor: pointer;
}

.rd-controls button:hover {
    background: var(--green,#28764a);
}

.rd-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rd-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: #ffffff70;
}

.rd-dots button[aria-pressed="true"] {
    background: var(--gold,#d4b66e);
}

.rd-share {
    margin-block: 35px 10px;
    padding: 20px;
    border-top: 1px solid #dce6de;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.rd-share strong {
    font-size: 14px;
    color: var(--green-dark,#123d2d);
}

.rd-share button {
    padding: 10px 16px;
    border: 1px solid var(--green,#28764a);
    border-radius: 5px;
    background: white;
    color: var(--green,#28764a);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.rd-share button:hover {
    background: var(--green,#28764a);
    color: white;
}

.rd-share [role="status"] {
    font-size: 12px;
    color: var(--green,#28764a);
}

@keyframes rd-photo-in {
    from { opacity: .65; }
    to { opacity: 1; }
}

@keyframes rd-content-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:700px) {

    .rd-slide {
        min-height: 540px;
    }

    .rd-slide-content {
        padding-block: 50px 90px;
    }

    .rd-slide h1,
    .rd-slide h2 {
        font-size: clamp(27px,7vw,39px);
    }

    .rd-slide p {
        font-size: 15px;
    }

    .rd-shade {
        background: rgba(9,31,21,.74);
    }

    .rd-controls {
        right: 20px;
        bottom: 20px;
    }

    .rd-primary,
    .rd-secondary {
        padding: 12px 17px;
    }
}

@media(prefers-reduced-motion:reduce) {

    .rd-slide-photo,
    .rd-slide-copy {
        animation: none;
    }

    .rd-primary,
    .rd-secondary {
        transition: none;
    }
}


/* WAMA-08C Slider alignment and document UX */

.rd-slide {
    height: clamp(450px,42vw,580px);
    min-height: 0;
    overflow: hidden;
}

.rd-slide-content.container {
    box-sizing: border-box;
    width: min(1180px,calc(100% - 48px));
    max-width: 1180px;
    margin-inline: auto;
    justify-self: center;
    padding: 48px 0 85px;
}

.rd-slide-copy {
    max-width: 690px;
}

.rd-slide h1,
.rd-slide h2 {
    font-size: clamp(27px,3.15vw,46px);
    line-height: 1.18;
    letter-spacing: -.5px;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.rd-slide p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.rd-kicker {
    margin-bottom: 15px;
}

.rd-controls {
    right: max(24px,calc((100% - 1180px)/2));
}

.wc-document-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.wc-file-icon {
    width: 46px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.wc-document-row .document-info {
    flex: 1;
    min-width: 160px;
    overflow-wrap: anywhere;
}

.wc-document-row .document-info small {
    display: block;
    margin-top: 7px;
    color: #66746b;
}

.wc-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wc-view-button,
.wc-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: background .2s,transform .2s;
}

.wc-view-button {
    border: 1px solid var(--green,#28764a);
    color: var(--green,#28764a);
    background: white;
}

.wc-download-button {
    background: var(--green,#28764a);
    color: white;
    border: 1px solid var(--green,#28764a);
}

.wc-view-button:hover,
.wc-download-button:hover {
    background: var(--green-dark,#123d2d);
    color: white;
    transform: translateY(-2px);
}

@media(max-width:700px) {

    .rd-slide {
        height: auto;
        min-height: 490px;
    }

    .rd-slide-content.container {
        width: calc(100% - 40px);
        padding: 35px 0 85px;
    }

    .rd-slide h1,
    .rd-slide h2 {
        font-size: clamp(25px,6.4vw,35px);
    }

    .rd-slide p {
        font-size: 14px;
    }

    .rd-controls {
        right: 20px;
    }

    .wc-document-actions {
        width: 100%;
    }

    .wc-document-actions a {
        flex: 1;
        white-space: normal;
    }

    .wc-file-icon {
        width: 39px;
        height: 48px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .wc-view-button,
    .wc-download-button {
        transition: none;
    }
}
