﻿/* Public site theme: white content, black header/footer, purple accents. */
:root {
    --site-green: #5B2BBF;
    --site-green-deep: #000000;
    --site-green-soft: #F5F0FF;
    --site-green-glow: rgba(91, 43, 191, 0.18);
    --site-text: #000000;
    --site-muted: #000000;
    --site-border: rgba(91, 43, 191, 0.38);
    --site-border-strong: #5B2BBF;
    --site-bg: #ffffff;
    --site-panel: #ffffff;
    --site-panel-soft: #ffffff;
    --site-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
    --site-shadow-strong: 0 22px 46px rgba(0, 0, 0, 0.1);
}

body.site-body {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 800;
}

body.site-body > main,
body.site-body .hero,
body.site-body .hero-overlay,
body.site-body .section,
body.site-body .section-alt,
body.site-body .page-head,
body.site-body .news-page-head,
body.site-body .news-list-section,
body.site-body .home-front-sections,
body.site-body .home-section-block,
body.site-body .about-resume-section,
body.site-body .about-biography-section,
body.site-body .about-biography-cards-section {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

body.site-body main :where(h1, h2, h3, h4, h5, h6, p, span, strong, li, label, small, blockquote, figcaption) {
    color: #000000;
    font-weight: 800;
}

body.site-body main :where(.muted, .page-simple-text, .news-rich-text, .candidate-program-text, .about-profile-strip-copy, .home-join-intro, .field-hint) {
    color: #000000 !important;
    font-weight: 800;
}

body.site-body .site-header {
    background: #000000 !important;
    border-bottom: 2px solid #5B2BBF;
    box-shadow: none;
}

body.site-body .site-header *,
body.site-body .site-footer *,
body.site-body .site-footer :where(h1, h2, h3, h4, p, span, strong, a) {
    color: #ffffff;
}

body.site-body .brand-copy strong,
body.site-body .site-nav > a,
body.site-body .locale-switch,
body.site-body .nav-toggle {
    color: #ffffff !important;
    font-weight: 900;
}

body.site-body .brand {
    width: clamp(150px, 18vw, 240px);
    min-height: 70px;
    justify-content: flex-start;
}

html[dir="rtl"] body.site-body .brand {
    justify-content: flex-end;
}

body.site-body .brand-logo-wordmark {
    width: 100%;
    height: 62px;
    object-fit: contain;
    display: block;
}

body.site-body .brand-copy {
    display: none !important;
}

body.site-body .site-nav > a,
body.site-body .locale-switch,
body.site-body .nav-toggle {
    border-color: transparent;
    background: transparent;
}

body.site-body .site-nav > a.active,
body.site-body .site-nav > a:hover,
body.site-body .site-nav > a:focus-visible,
body.site-body .locale-switch:hover,
body.site-body .nav-toggle:hover,
body.site-body .nav-toggle:focus-visible {
    color: #C4B5FD !important;
    border-color: #C4B5FD;
}

body.site-body .site-footer {
    background: #000000 !important;
    border-top: 2px solid #5B2BBF;
    color: #ffffff;
}

body.site-body .footer-copy {
    color: #ffffff !important;
    font-weight: 800;
}

body.site-body .hero {
    background-color: #ffffff !important;
    background-image: none !important;
}

body.site-body .hero-site-title,
body.site-body .hero-motto-text,
body.site-body .section-kicker,
body.site-body .page-head h1,
body.site-body .news-head-strip h1,
body.site-body .news-head-strip h2,
body.site-body .section-heading h2 {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 900;
}

body.site-body :where(.card, .highlight-box, .news-detail-card, .news-featured-card, .contact-info-card, .contact-social-card, .home-join-card, .office-directory-card, .member-info-row, .election-card, .province-square-card, .candidate-card, .about-subcard, .about-entry-card, .home-info-card, .news-list-card, .news-title-card, .news-summary-card, .news-body-card, .about-profile-image-card, .about-profile-strip, .about-resume-card) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(91, 43, 191, 0.42) !important;
    box-shadow: var(--site-shadow) !important;
}

body.site-body :where(.home-section-strip, .news-related-strip, .card-section-strip, .news-head-strip, .chip, .contact-line, .social-link-card, .member-info-heading) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(91, 43, 191, 0.45) !important;
    box-shadow: none !important;
}

body.site-body :where(.card:hover, .news-list-card:hover, .about-subcard:hover, .about-entry-card:hover, .candidate-card:hover, .office-directory-card:hover, .home-info-card:hover) {
    border-color: #5B2BBF !important;
    box-shadow: var(--site-shadow-strong) !important;
}

body.site-body :where(.button, .news-link-button, .back-link-button) {
    background: #5B2BBF !important;
    border: 1px solid #5B2BBF !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-weight: 900;
}

body.site-body :where(.button, .news-link-button, .back-link-button) :where(span, strong) {
    color: #ffffff !important;
}

body.site-body :where(.button:hover, .news-link-button:hover, .back-link-button:hover) {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

body.site-body :where(.outline-button, .muted-button, .card .outline-button, .card .muted-button, .sidebar-stack .outline-button) {
    background: #ffffff !important;
    border: 1px solid #5B2BBF !important;
    color: #000000 !important;
    box-shadow: none !important;
    font-weight: 900;
}

body.site-body :where(.text-link, .member-info-link, .home-info-label, .contact-line strong, .book-card__meta, .news-detail-center a) {
    color: #4C1D95 !important;
    font-weight: 900;
}

body.site-body :where(input, textarea, select) {
    background: #ffffff !important;
    border: 1px solid rgba(91, 43, 191, 0.48) !important;
    color: #000000 !important;
    font-weight: 800;
}

body.site-body :where(input::placeholder, textarea::placeholder) {
    color: rgba(0, 0, 0, 0.62) !important;
}

body.site-body :where(.flash-message, .empty-state) {
    background: #F5F0FF !important;
    color: #000000 !important;
    border: 1px solid rgba(91, 43, 191, 0.45) !important;
}

body.site-body :where(.card-image, .article-image, .news-featured-image, .about-profile-image-link, .about-profile-image-placeholder) {
    background: #ffffff !important;
    border-color: rgba(91, 43, 191, 0.42) !important;
}

body.site-body .about-resume-title {
    color: #000000 !important;
}

body.site-body .about-resume-title::after,
body.site-body .about-resume-track::before {
    background: #5B2BBF !important;
}

body.site-body .about-resume-marker {
    background: #5B2BBF !important;
    box-shadow: 0 0 0 6px #ffffff !important;
}

body.site-body .about-resume-card {
    background: #ffffff !important;
    border-color: #5B2BBF !important;
}

body.site-body .about-resume-card h3,
body.site-body .about-resume-card p {
    color: #000000 !important;
}

body.site-body .about-resume-card time {
    color: #4C1D95 !important;
    font-weight: 900;
}

@media (max-width: 860px) {
    body.site-body .site-nav {
        background: #000000 !important;
        border: 1px solid #5B2BBF !important;
    }
}

/* Contact page tuning */
body.site-body .contact-page-head {
    background: #FAF8FF !important;
}

body.site-body .contact-page-head .news-head-strip {
    background: #EEE7FF !important;
    border-color: rgba(91, 43, 191, 0.58) !important;
}

body.site-body .contact-page-head h1 {
    color: #000000 !important;
    font-weight: 900;
}

body.site-body .contact-page-section,
body.site-body .contact-page-section :where(h1, h2, h3, h4, p, span, strong, a, label, li) {
    color: #000000 !important;
    font-weight: 800;
}

body.site-body .contact-page-section :where(.home-info-value, .home-info-value-ltr, .contact-info-value-center, .contact-line strong, .contact-line span, .social-link-card, .text-link, .muted, .empty-state) {
    color: #000000 !important;
}

body.site-body .contact-page-section :where(.chip, .contact-line, .social-link-card, .home-section-strip) {
    background: #FAF8FF !important;
    border-color: rgba(91, 43, 191, 0.54) !important;
}

/* About page tuning */
body.site-body .about-page-head {
    background: #FAF8FF !important;
}

body.site-body .about-page-head .news-head-strip {
    background: #EEE7FF !important;
    border-color: rgba(91, 43, 191, 0.58) !important;
}

body.site-body .about-page-head h1 {
    color: #000000 !important;
    font-weight: 900;
}

body.site-body .about-page-section,
body.site-body .about-page-section :where(h1, h2, h3, h4, p, span, strong, a, label, li, div) {
    color: #000000 !important;
    font-weight: 800;
}

body.site-body .about-page-section :where(.about-profile-image-card, .about-profile-strip) {
    background: #ffffff !important;
    border-color: rgba(91, 43, 191, 0.5) !important;
}

body.site-body .about-page-section .about-profile-strip .card-body {
    background: #FAF8FF !important;
}

body.site-body .about-page-section .about-profile-strip-lead .card-body {
    background: #EEE7FF !important;
}

body.site-body .about-page-section .about-profile-strip-copy,
body.site-body .about-page-section .about-profile-strip-lead .about-profile-strip-copy {
    color: #000000 !important;
    text-shadow: none !important;
}

body.site-body .about-page-section .about-profile-image-link {
    background: #FAF8FF !important;
    border-color: rgba(91, 43, 191, 0.5) !important;
}

body.site-body .about-resume-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    min-height: 86px;
    margin: 0 auto 76px !important;
    padding: 12px 6px;
    background: #EEE7FF !important;
    border: 1px solid rgba(91, 43, 191, 0.58);
    border-radius: 0;
    color: #000000 !important;
    font-size: clamp(1.82rem, 2.7vw, 2.45rem) !important;
    font-weight: 900;
    line-height: 1.28;
    text-align: center;
}

body.site-body .about-resume-title::after {
    display: none !important;
}

/* Books page tuning */
body.site-body .books-page-head {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(91, 43, 191, 0.34) !important;
}

body.site-body .books-page-head > .container {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.site-body .books-page-head .news-head-strip {
    width: min(100%, 1320px);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #EEE7FF !important;
    border: 1px solid rgba(91, 43, 191, 0.58) !important;
    box-shadow: none !important;
}

body.site-body .books-page-head h1 {
    color: #000000 !important;
    margin: 0 !important;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

body.site-body .books-page-section .books-card-grid {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    justify-items: center;
}

body.site-body .books-page-section .empty-state {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF8FF !important;
    color: #000000 !important;
    border-color: rgba(91, 43, 191, 0.58) !important;
    text-align: center;
    font-weight: 900;
}

body.site-body .books-page-section .book-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff !important;
    border-color: rgba(91, 43, 191, 0.5) !important;
    overflow: hidden;
}

body.site-body .books-page-section .book-card__placeholder,
body.site-body .books-page-section .book-card__image {
    width: 100%;
    height: clamp(210px, 28vh, 260px);
    aspect-ratio: auto;
    object-fit: cover;
    background: #FAF8FF !important;
    border-bottom: 1px solid rgba(91, 43, 191, 0.42);
    color: #000000 !important;
    font-weight: 900;
}

body.site-body .books-page-section .book-card__body {
    gap: 12px;
    padding: 22px 20px 24px;
}

body.site-body .books-page-section .book-card__body h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.35;
}

body.site-body .books-page-section .book-card__body p {
    margin: 0;
    line-height: 1.75;
}

body.site-body .books-page-section .book-card__body h3,
body.site-body .books-page-section .book-card__body p,
body.site-body .books-page-section .book-card__pages,
body.site-body .books-page-section .book-card__pages span,
body.site-body .books-page-section .book-card__pages strong {
    color: #000000 !important;
    font-weight: 900;
}

body.site-body .books-page-section .book-card__pages,
body.site-body .home-page-stack .book-card__pages,
body.site-body .books-reader-section .book-card__pages {
    width: min(250px, 100%);
    min-height: 58px;
    justify-content: center;
    background: #EEE7FF !important;
    border: 1px solid rgba(91, 43, 191, 0.58) !important;
    color: #000000 !important;
    box-shadow: none !important;
}

body.site-body .book-card__pages span,
body.site-body .book-card__pages strong {
    color: #000000 !important;
    font-weight: 900 !important;
}

body.site-body .books-page-section .book-card__actions {
    align-items: stretch;
}

body.site-body .books-page-section .book-card__actions .button,
body.site-body .books-page-section .book-card__actions .outline-button {
    min-width: 128px;
    min-height: 54px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #5B2BBF !important;
    border: 1px solid #5B2BBF !important;
    color: #ffffff !important;
    font-weight: 900;
}

html[dir="ltr"] body.site-body .books-page-section .book-card__body {
    gap: 10px;
    padding: 18px 18px 20px;
}

html[dir="ltr"] body.site-body .books-page-section .book-card__body h3 {
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    line-height: 1.3;
}

html[dir="ltr"] body.site-body .books-page-section .book-card__body p {
    max-width: 100%;
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

html[dir="ltr"] body.site-body .books-page-section .book-card__pages {
    width: min(220px, 100%);
    min-height: 46px;
}

html[dir="ltr"] body.site-body .books-page-section .book-card__pages span,
html[dir="ltr"] body.site-body .books-page-section .book-card__pages strong {
    font-size: 0.88rem;
}

html[dir="ltr"] body.site-body .books-page-section .book-card__actions .button,
html[dir="ltr"] body.site-body .books-page-section .book-card__actions .outline-button {
    min-width: 112px;
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
}

body.site-body .books-page-section .book-card__actions .button:hover,
body.site-body .books-page-section .book-card__actions .outline-button:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

body.site-body .books-reader-section .book-card__actions .button,
body.site-body .books-reader-section .book-card__actions .outline-button,
body.site-body .books-reader-section .books-viewer-head .news-link-button {
    min-width: 150px;
    min-height: 58px;
    padding: 12px 18px;
    border-radius: 16px;
    background: #5B2BBF !important;
    border: 1px solid #5B2BBF !important;
    color: #ffffff !important;
    font-weight: 900;
}

body.site-body .books-reader-section .book-card__actions .button:hover,
body.site-body .books-reader-section .book-card__actions .outline-button:hover,
body.site-body .books-reader-section .books-viewer-head .news-link-button:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

body.site-body .books-reader-section .books-hero-copy > .chip {
    width: min(360px, 100%);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    margin-inline: auto;
    background: #EEE7FF !important;
    border: 1px solid rgba(91, 43, 191, 0.58) !important;
    color: #000000 !important;
    text-align: center;
    font-weight: 900 !important;
}

@media (max-width: 980px) {
    body.site-body .books-page-section .books-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.site-body .books-page-section .books-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Services page */
body.site-body .services-page-head {
    background: #FAF8FF !important;
}

body.site-body .services-page-head .news-head-strip {
    background: #EEE7FF !important;
    border-color: rgba(91, 43, 191, 0.58) !important;
}

body.site-body .services-page-head h1 {
    color: #000000 !important;
    font-weight: 900;
}

body.site-body .services-page-section {
    background: #ffffff !important;
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    min-height: 270px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    padding: 34px 28px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 22px;
    background: #ffffff;
    color: #000000;
    text-align: center;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-4px);
    border-color: #5B2BBF;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.1);
}

.service-card-icon,
.service-detail-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #EEE7FF;
    border: 1px solid rgba(91, 43, 191, 0.64);
}

.service-card-icon::before,
.service-detail-icon::before {
    content: "";
    width: 34px;
    height: 28px;
    border: 3px solid #5B2BBF;
    border-radius: 6px;
}

.service-card-icon::after,
.service-detail-icon::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 3px;
    bottom: 21px;
    border-radius: 999px;
    background: #5B2BBF;
}

.service-card-systems .service-card-icon::before,
.service-detail-card-systems .service-detail-icon::before {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 6px #EEE7FF, inset 0 0 0 9px #5B2BBF;
}

.service-card-training .service-card-icon::before,
.service-detail-card-training .service-detail-icon::before {
    width: 38px;
    height: 26px;
    border-radius: 4px 4px 10px 10px;
    transform: skewX(-8deg);
}

.service-card-ai .service-card-icon::before,
.service-detail-card-ai .service-detail-icon::before {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 18px 0 0 -12px #5B2BBF, -18px 0 0 -12px #5B2BBF;
}

.service-card-consulting .service-card-icon::before,
.service-detail-card-consulting .service-detail-icon::before {
    width: 38px;
    height: 28px;
    border-radius: 12px;
}

.service-card h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(1.35rem, 2vw, 1.72rem);
    font-weight: 900;
    line-height: 1.45;
}

.service-card p {
    margin: 0;
    color: #000000;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.85;
}

.service-detail-section {
    background: #ffffff !important;
}

.service-detail-shell {
    width: min(980px, calc(100% - 32px));
}

.service-detail-card {
    display: grid;
    justify-items: center;
    gap: 26px;
    padding: 0 28px 32px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 22px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.service-detail-title-strip {
    width: calc(100% + 56px);
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #EEE7FF;
    border-bottom: 1px solid rgba(91, 43, 191, 0.58);
}

.service-detail-title-strip h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.service-detail-block {
    width: min(760px, 100%);
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(91, 43, 191, 0.42);
    border-radius: 18px;
    background: #FAF8FF;
    text-align: center;
}

.service-detail-block h3,
.service-detail-block p,
.service-detail-rich {
    margin: 0;
    color: #000000;
    font-weight: 900;
    line-height: 1.9;
}

.service-request-strip {
    width: min(760px, 100%);
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 18px;
    background: #EEE7FF;
    color: #000000;
    font-weight: 900;
    text-align: center;
}

.service-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 14px;
    background: #5B2BBF;
    border: 1px solid #5B2BBF;
    color: #000000 !important;
    font-weight: 900;
}

.service-whatsapp-button:hover,
.service-whatsapp-button:focus-visible {
    background: #000000;
    border-color: #000000;
    color: #ffffff !important;
}

@media (max-width: 980px) {
    .services-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services-card-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        padding-inline: 18px;
    }

    .service-detail-title-strip {
        width: calc(100% + 36px);
    }
}

/* Projects and innovations */
.projects-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    min-height: 300px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    padding: 30px 24px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 22px;
    background: #ffffff;
    color: #000000;
    text-align: center;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-4px);
    border-color: #5B2BBF;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.1);
}

.project-card-media,
.project-detail-logo {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border-radius: 24px;
    background: #EEE7FF;
    border: 1px solid rgba(91, 43, 191, 0.58);
    overflow: hidden;
}

.project-card-media img,
.project-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.project-card-media span,
.project-detail-logo span {
    color: #000000;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.2;
}

.project-card h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(1.32rem, 2vw, 1.72rem);
    font-weight: 900;
    line-height: 1.45;
}

.project-detail-section {
    background: #ffffff !important;
}

.project-detail-shell {
    width: min(980px, calc(100% - 32px));
}

.project-detail-card {
    display: grid;
    justify-items: center;
    gap: 26px;
    padding: 0 28px 32px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 22px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.project-detail-title-strip {
    width: calc(100% + 56px);
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #EEE7FF;
    border-bottom: 1px solid rgba(91, 43, 191, 0.58);
}

.project-detail-title-strip h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.project-detail-logo {
    width: 190px;
    height: 190px;
}

.project-detail-block,
.project-link-strip {
    width: min(760px, 100%);
    padding: 24px;
    border: 1px solid rgba(91, 43, 191, 0.42);
    border-radius: 18px;
    background: #FAF8FF;
    text-align: center;
}

.project-detail-block p {
    margin: 0;
    color: #000000;
    font-size: 1.13rem;
    font-weight: 900;
    line-height: 1.9;
}

.project-link-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #EEE7FF;
    color: #000000;
    font-weight: 900;
}

.project-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 14px;
    background: #5B2BBF;
    border: 1px solid #5B2BBF;
    color: #000000 !important;
    font-weight: 900;
}

.project-link-button:hover,
.project-link-button:focus-visible {
    background: #000000;
    border-color: #000000;
    color: #ffffff !important;
}

@media (max-width: 980px) {
    .projects-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .projects-card-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-card {
        padding-inline: 18px;
    }

    .project-detail-title-strip {
        width: calc(100% + 36px);
    }
}

/* News feature cards and detail */
.news-feature-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-feature-card {
    height: 430px;
    display: grid;
    grid-template-rows: 190px auto 1fr;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 22px;
    background: #ffffff;
    color: #000000;
    text-align: center;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-feature-card:hover,
.news-feature-card:focus-visible {
    transform: translateY(-4px);
    border-color: #5B2BBF;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.1);
}

.news-feature-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 190px;
    border-radius: 18px;
    background: #EEE7FF;
    border: 1px solid rgba(91, 43, 191, 0.42);
    overflow: hidden;
}

.news-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature-image span {
    color: #000000;
    font-weight: 900;
}

.news-feature-title,
.news-feature-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #000000;
    font-weight: 900;
    line-height: 1.55;
}

.news-feature-title {
    -webkit-line-clamp: 2;
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #EEE7FF;
    border: 1px solid rgba(91, 43, 191, 0.34);
    font-size: 1.18rem;
}

.news-feature-summary {
    -webkit-line-clamp: 3;
    padding: 12px;
    border-radius: 14px;
    background: #FAF8FF;
    border: 1px solid rgba(91, 43, 191, 0.24);
    font-size: 0.98rem;
}

.news-feature-detail-section {
    background: #ffffff !important;
}

.news-feature-detail-shell {
    width: min(1040px, calc(100% - 32px));
}

.news-feature-detail-card {
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: 0 28px 32px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 22px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    text-align: center;
}

.news-feature-title-strip {
    width: calc(100% + 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #EEE7FF;
    border-bottom: 1px solid rgba(91, 43, 191, 0.58);
    text-align: center;
}

.news-feature-section-strip {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    background: #EEE7FF;
    border: 1px solid rgba(91, 43, 191, 0.42);
    color: #000000;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
}

.news-feature-title-strip h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.35;
}

.news-feature-summary-strip {
    width: min(820px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    border: 1px solid rgba(91, 43, 191, 0.42);
    border-radius: 18px;
    background: #FAF8FF;
    text-align: center;
}

.news-feature-summary-strip p,
.news-feature-body div {
    margin: 0;
    color: #000000;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.95;
    text-align: center;
}

.news-feature-main-image-link {
    display: block;
    width: min(820px, 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(91, 43, 191, 0.42);
    background: #ffffff;
}

.news-feature-main-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.news-feature-body,
.news-feature-gallery,
.news-feature-video-block {
    width: min(820px, 100%);
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(91, 43, 191, 0.42);
    border-radius: 18px;
    background: #FAF8FF;
}

.news-feature-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.news-feature-gallery-link {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(91, 43, 191, 0.36);
    background: #ffffff;
}

.news-feature-gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature-link-strip {
    width: min(820px, 100%);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border: 1px solid rgba(91, 43, 191, 0.52);
    border-radius: 18px;
    background: #EEE7FF;
    color: #000000;
    font-weight: 900;
    text-align: center;
}

.news-feature-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 14px;
    background: #5B2BBF;
    border: 1px solid #5B2BBF;
    color: #000000 !important;
    font-weight: 900;
}

.news-feature-link-button:hover,
.news-feature-link-button:focus-visible {
    background: #000000;
    border-color: #000000;
    color: #ffffff !important;
}

.news-feature-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(91, 43, 191, 0.38);
    background: #000000;
}

.news-feature-video-frame iframe,
.news-feature-native-video {
    width: 100%;
    height: 100%;
    border: 0;
}

.news-feature-native-video {
    max-height: 520px;
    border-radius: 18px;
    background: #000000;
}

@media (max-width: 980px) {
    .news-feature-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .news-feature-card-grid,
    .news-feature-gallery-grid {
        grid-template-columns: 1fr;
    }

    .news-feature-detail-card {
        padding-inline: 18px;
    }

    .news-feature-title-strip {
        width: calc(100% + 36px);
    }

    .news-feature-section-strip {
        min-height: 52px;
        padding-inline: 12px;
    }
}

/* Rebuilt home page */
.home-slider-section {
    position: relative;
    min-height: clamp(620px, 82vh, 900px);
    overflow: hidden;
    background: #ffffff;
    isolation: isolate;
    border-bottom: 1px solid rgba(91, 43, 191, 0.36);
}

.home-slider-section::after {
    content: none;
}

.home-slider-inner {
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    grid-template-areas: "media copy";
    align-items: center;
    gap: clamp(24px, 5vw, 78px);
    direction: ltr;
}

.home-slider-copy {
    grid-area: copy;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    direction: rtl;
    text-align: center;
    color: #000000;
    min-height: min(560px, 72vh);
    padding: clamp(18px, 3vw, 34px);
}

html[dir="ltr"] .home-slider-inner {
    grid-template-areas: "copy media";
}

html[dir="ltr"] .home-slider-copy {
    direction: ltr;
    text-align: center;
    justify-items: center;
}

html[dir="ltr"] .home-slider-copy h1 {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(2.15rem, 4vw, 3.85rem);
    line-height: 1.08;
    font-weight: 800;
    text-shadow: 0 6px 14px rgba(91, 43, 191, 0.1);
}

html[dir="ltr"] .home-slider-copy p {
    width: min(640px, 100%);
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    line-height: 1.55;
    font-weight: 800;
}

html[dir="ltr"] .home-slider-copy a {
    font-weight: 800;
    border-bottom-width: 1px;
}

html[dir="ltr"] .home-slider-specialties {
    width: min(660px, 100%);
    font-size: clamp(0.95rem, 1.15vw, 1.08rem) !important;
    line-height: 1.55;
    font-weight: 800 !important;
}

html[dir="ltr"] .home-slider-socials {
    width: min(640px, 100%);
    gap: 8px;
}

html[dir="ltr"] .home-slider-socials a,
html[dir="ltr"] .home-slider-socials span {
    min-width: 96px;
    min-height: 36px;
    padding: 7px 14px;
    font-size: clamp(0.82rem, 0.95vw, 0.95rem);
    font-weight: 800;
}

html[dir="ltr"] .home-slider-contact-lines a {
    font-size: clamp(0.84rem, 0.95vw, 0.96rem);
    font-weight: 800;
}

.home-slider-copy h1,
.home-slider-copy p,
.home-slider-copy a {
    margin: 0;
    color: #000000 !important;
    font-weight: 900;
}

.home-slider-copy h1 {
    font-size: clamp(2.45rem, 4.6vw, 4.7rem);
    line-height: 1.2;
    letter-spacing: 0;
    text-shadow: 0 8px 18px rgba(91, 43, 191, 0.14);
}

.home-slider-copy p {
    width: min(720px, 100%);
    font-size: clamp(1.15rem, 1.9vw, 1.65rem);
    line-height: 1.7;
}

.home-slider-copy a {
    color: #4C1D95 !important;
    text-decoration: none;
    border-bottom: 2px solid rgba(91, 43, 191, 0.72);
    padding-bottom: 3px;
}

.home-slider-copy a:hover,
.home-slider-copy a:focus-visible {
    color: #000000 !important;
    border-bottom-color: #000000;
}

.home-slider-specialties {
    color: #000000 !important;
    font-size: clamp(1rem, 1.45vw, 1.32rem) !important;
    padding-top: 6px;
}

.home-slider-socials {
    width: min(560px, 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.home-slider-socials a,
.home-slider-socials span {
    min-width: 104px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid rgba(91, 43, 191, 0.58);
    border-radius: 999px;
    background: #EEE7FF;
    color: #000000 !important;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(91, 43, 191, 0.08);
}

.home-slider-socials a:hover,
.home-slider-socials a:focus-visible {
    background: #5B2BBF;
    border-color: #5B2BBF;
    color: #ffffff !important;
}

.home-slider-socials span {
    cursor: default;
}

.home-slider-contact {
    width: min(560px, 100%);
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 10px;
}

.home-slider-contact .home-slider-socials {
    margin-top: 0;
}

.home-slider-snapchat {
    min-width: 160px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px;
    border: 1px solid rgba(91, 43, 191, 0.65);
    border-radius: 999px;
    background: #EEE7FF;
    color: #000000 !important;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(91, 43, 191, 0.08);
}

.home-slider-contact-lines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    width: 100%;
}

.home-slider-contact-lines a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    color: #000000 !important;
    border: 0;
    font-size: clamp(0.92rem, 1vw, 1.02rem);
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.home-slider-snapchat:hover,
.home-slider-snapchat:focus-visible {
    background: #5B2BBF;
    border-color: #5B2BBF;
    color: #ffffff !important;
}

.home-slider-contact-lines a:hover,
.home-slider-contact-lines a:focus-visible {
    color: #4C1D95 !important;
}

.home-slider-stage {
    grid-area: media;
    position: relative;
    width: 100%;
    min-height: clamp(560px, 78vh, 860px);
    overflow: hidden;
    background: #ffffff;
}

.home-slider-track,
.home-slide,
.home-slide-media {
    position: absolute;
    inset: 0;
}

.home-slide {
    opacity: 0;
    animation: homeSlideFade var(--slide-duration, 25s) infinite;
    animation-delay: calc(var(--slide-index, 0) * 5s);
}

.home-slide-media {
    display: grid;
    place-items: end center;
    overflow: hidden;
    background: #ffffff;
}

.home-slide-media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
}

.home-page-sections {
    background: #ffffff !important;
}

.home-quote-strip {
    background: #F5F0FF;
    border-block: 1px solid rgba(91, 43, 191, 0.42);
    padding: 26px 16px;
}

.home-quote-strip p {
    margin: 0;
    color: #000000 !important;
    font-size: clamp(1.3rem, 2.4vw, 2.15rem);
    font-weight: 900;
    line-height: 1.7;
    text-align: center;
}

.home-page-stack,
.home-front-block {
    display: grid;
    gap: 28px;
}

.home-page-stack {
    gap: 48px;
}

.home-front-strip {
    width: min(100%, 1320px);
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    border: 1px solid rgba(91, 43, 191, 0.58);
    background: #EEE7FF;
    color: #000000 !important;
    text-align: center;
}

.home-front-strip span {
    color: #000000;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.25;
}

.home-front-strip:hover,
.home-front-strip:focus-visible {
    background: #5B2BBF;
}

.home-front-strip:hover span,
.home-front-strip:focus-visible span {
    color: #ffffff !important;
}

.home-about-card {
    overflow: hidden;
    border-color: rgba(91, 43, 191, 0.5) !important;
    background: #ffffff !important;
}

.home-about-card > .card-body {
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px;
}

.home-about-copy {
    display: grid;
    gap: 16px;
    align-content: center;
    justify-self: center;
    width: min(1120px, 100%);
}

.home-about-text {
    padding: 20px 22px;
    border: 1px solid rgba(91, 43, 191, 0.42);
    background: #FAF8FF;
    color: #000000 !important;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 900;
    line-height: 2;
    text-align: center;
}

.home-about-text:nth-child(odd) {
    background: #EEE7FF;
    border-color: rgba(91, 43, 191, 0.58);
}

.home-about-text:nth-child(even) {
    background: #FAF8FF;
}

body.site-body .contact-info-card .home-info-value,
body.site-body .contact-info-card .home-info-value-ltr,
body.site-body .contact-info-card .contact-info-value-center,
body.site-body .contact-top-grid .home-info-value,
body.site-body .contact-top-grid .home-info-value-ltr,
body.site-body .contact-line strong,
body.site-body .contact-line span,
body.site-body .contact-social-card .social-link-card {
    color: #000000 !important;
    font-weight: 900 !important;
}

body.site-body .contact-social-card .home-section-strip,
body.site-body .contact-page-section .contact-social-card .home-section-strip,
body.site-body .home-page-stack .contact-social-card .home-section-strip {
    background: #EEE7FF !important;
    border: 1px solid rgba(91, 43, 191, 0.58) !important;
    color: #000000 !important;
    box-shadow: none !important;
}

body.site-body .contact-social-card .home-section-strip span {
    color: #000000 !important;
    font-weight: 900 !important;
}

@keyframes homeSlideFade {
    0% {
        opacity: 0;
    }
    4%,
    16% {
        opacity: 1;
    }
    22%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 760px) {
    .home-slider-section {
        min-height: auto;
        padding-block: 36px 0;
    }

    .home-slider-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "media";
        gap: 26px;
    }

    .home-slider-copy,
    html[dir="ltr"] .home-slider-copy {
        text-align: center;
        justify-items: center;
        direction: rtl;
    }

    html[dir="ltr"] .home-slider-copy {
        direction: ltr;
    }

    html[dir="ltr"] .home-slider-copy h1 {
        white-space: normal;
        font-size: clamp(2rem, 8vw, 2.85rem);
        line-height: 1.12;
    }

    .home-slider-copy p {
        width: min(460px, 100%);
    }

    .home-slider-stage {
        min-height: 560px;
    }

    .home-slide-media img {
        height: 100%;
        max-height: 100%;
        transform: none;
    }

    .home-front-strip {
        min-height: 78px;
    }

    .home-about-card > .card-body {
        padding: 18px;
    }
}


/* Mobile-only layout fixes - 2026-05-17 */
@media (max-width: 760px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-slider-section {
        min-height: auto !important;
        padding: 0 0 18px !important;
    }

    .home-slider-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "media"
            "copy" !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .home-slider-stage {
        grid-area: media !important;
        display: block !important;
        width: 100% !important;
        height: clamp(360px, 112vw, 520px) !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .home-slide-media {
        place-items: end center !important;
    }

    .home-slide-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center bottom !important;
    }

    .home-slider-copy,
    html[dir="ltr"] .home-slider-copy {
        grid-area: copy !important;
        min-height: auto !important;
        padding: 18px 14px 24px !important;
        gap: 10px !important;
        text-align: center !important;
        justify-items: center !important;
    }

    .home-slider-copy h1,
    html[dir="ltr"] .home-slider-copy h1 {
        max-width: 100% !important;
        font-size: clamp(1.7rem, 7.4vw, 2.35rem) !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    html[dir="ltr"] .home-slider-copy h1 {
        white-space: nowrap !important;
        font-size: clamp(1.55rem, 6.7vw, 2.25rem) !important;
    }

    .home-slider-copy p,
    html[dir="ltr"] .home-slider-copy p,
    .home-slider-specialties,
    html[dir="ltr"] .home-slider-specialties {
        width: 100% !important;
        font-size: clamp(0.9rem, 4vw, 1.05rem) !important;
        line-height: 1.55 !important;
        text-align: center !important;
    }

    .home-slider-socials {
        width: 100% !important;
        gap: 8px !important;
    }

    .home-slider-socials a,
    .home-slider-socials span {
        min-width: 30% !important;
        min-height: 36px !important;
        padding: 7px 10px !important;
        font-size: clamp(0.78rem, 3.4vw, 0.95rem) !important;
        white-space: nowrap !important;
    }

    .home-slider-contact-lines {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 6px 10px !important;
        width: 100% !important;
    }

    .home-slider-contact-lines a {
        min-width: 0 !important;
        padding: 4px 0 !important;
        font-size: clamp(0.68rem, 3.1vw, 0.82rem) !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-align: center !important;
    }

    .books-page-section .books-card-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 24px !important;
    }

    body.site-body .books-page-section .book-card {
        width: min(92vw, 360px) !important;
        max-width: min(92vw, 360px) !important;
        margin-inline: auto !important;
    }

    body.site-body .books-page-section .book-card__image,
    body.site-body .books-page-section .book-card__placeholder {
        height: 235px !important;
        object-fit: contain !important;
        object-position: center center !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
    }

    body.site-body .books-page-section .book-card__body {
        padding: 18px 16px 20px !important;
        gap: 10px !important;
        text-align: center !important;
        justify-items: center !important;
    }

    body.site-body .books-page-section .book-card__body h3 {
        width: 100% !important;
        font-size: clamp(1rem, 5vw, 1.25rem) !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    body.site-body .books-page-section .book-card__body p {
        width: 100% !important;
        max-width: 100% !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        font-size: clamp(0.78rem, 3.7vw, 0.95rem) !important;
        line-height: 1.5 !important;
        text-align: center !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
    }

    body.site-body .books-page-section .book-card__pages {
        width: min(230px, 100%) !important;
        min-height: 44px !important;
    }

    body.site-body .books-page-section .book-card__actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    body.site-body .books-page-section .book-card__actions .button,
    body.site-body .books-page-section .book-card__actions .outline-button {
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 8px 6px !important;
        border-radius: 14px !important;
        font-size: clamp(0.78rem, 3.7vw, 0.95rem) !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .books-reader-section {
        overflow-x: hidden !important;
    }

    .books-reader-shell {
        width: 100% !important;
        max-width: 100% !important;
        gap: 18px !important;
    }

    .books-hero-card,
    .books-viewer-card {
        width: calc(100vw - 22px) !important;
        max-width: calc(100vw - 22px) !important;
        margin-inline: auto !important;
        overflow: hidden !important;
    }

    .books-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .books-hero-cover {
        display: flex !important;
        justify-content: center !important;
        padding: 14px !important;
    }

    .books-hero-image {
        width: auto !important;
        max-width: 78% !important;
        max-height: 280px !important;
        object-fit: contain !important;
    }

    .books-hero-copy {
        padding: 0 14px 18px !important;
        text-align: center !important;
        justify-items: center !important;
        overflow: hidden !important;
    }

    .books-hero-copy h2 {
        width: 100% !important;
        font-size: clamp(1.35rem, 7vw, 2rem) !important;
        line-height: 1.2 !important;
        text-align: center !important;
        overflow-wrap: anywhere !important;
    }

    .books-hero-copy p,
    .books-reader-hint {
        width: 100% !important;
        font-size: clamp(0.86rem, 4vw, 1rem) !important;
        line-height: 1.6 !important;
        text-align: center !important;
        overflow-wrap: break-word !important;
    }

    .books-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .books-meta-grid .contact-line {
        min-height: 76px !important;
        padding: 14px !important;
        text-align: center !important;
        align-items: center !important;
        justify-items: center !important;
    }

    .books-reader-section .book-card__actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .books-reader-section .book-card__actions .button,
    .books-reader-section .book-card__actions .outline-button,
    .books-reader-section .books-viewer-head .news-link-button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 9px 8px !important;
        border-radius: 14px !important;
        font-size: clamp(0.78rem, 3.6vw, 0.95rem) !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .books-viewer-head {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .books-pdf-frame {
        width: 100% !important;
        min-height: 460px !important;
        overflow: hidden !important;
    }

    .books-pdf-frame iframe {
        width: 100% !important;
    }

    .contact-top-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .contact-info-card .card-body {
        padding: 18px 14px !important;
        gap: 12px !important;
    }

    .contact-info-card .home-info-value,
    .contact-info-card .home-info-value-ltr,
    .contact-info-card .contact-info-value-center,
    .contact-top-grid .home-info-value,
    .contact-top-grid .home-info-value-ltr {
        max-width: 100% !important;
        font-size: clamp(0.9rem, 4.4vw, 1.08rem) !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        direction: ltr !important;
        unicode-bidi: plaintext !important;
        text-align: center !important;
    }

    .social-card-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .social-link-card {
        min-height: 48px !important;
        padding: 8px 10px !important;
        font-size: clamp(0.95rem, 4vw, 1.15rem) !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }

    .home-front-strip span,
    .home-about-text,
    .news-head-strip h1,
    .books-hero-copy,
    .books-viewer-head,
    .contact-social-card .home-section-strip span {
        text-align: center !important;
    }
}

/* Mobile-only: reduce top gap before home slider */
@media (max-width: 760px) {
    .home-slider-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .home-slider-inner {
        padding-top: 0 !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }

    .home-slider-stage {
        margin-top: 0 !important;
        transform: translateY(-34px);
    }

    .home-slider-copy {
        margin-top: -28px !important;
    }
}

/* Mobile-only: maximum reduce gap under header before slider */
@media (max-width: 760px) {
    .home-slider-section {
        padding-top: 0 !important;
        margin-top: -70px !important;
    }

    .home-slider-inner {
        padding-top: 0 !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }

    .home-slider-stage {
        margin-top: 0 !important;
        transform: translateY(-92px) !important;
    }

    .home-slider-copy {
        margin-top: -84px !important;
    }
}

/* Mobile-only: stronger reduce gap under header before slider */
@media (max-width: 760px) {
    .home-slider-section {
        padding-top: 0 !important;
        margin-top: -42px !important;
    }

    .home-slider-inner {
        padding-top: 0 !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }

    .home-slider-stage {
        margin-top: 0 !important;
        transform: translateY(-64px) !important;
    }

    .home-slider-copy {
        margin-top: -58px !important;
    }
}

/* Hero contact CTA replacement */
.home-slider-contact {
    display: none !important;
}

.home-slider-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
}

.home-slider-contact-button {
    min-width: 180px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 34px;
    border-radius: 999px;
    background: #5B2BBF;
    border: 1px solid #5B2BBF;
    color: #ffffff !important;
    font-size: clamp(1rem, 1.2vw, 1.14rem);
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(91, 43, 191, 0.22);
}

.home-slider-contact-button:hover,
.home-slider-contact-button:focus-visible {
    background: #000000;
    border-color: #000000;
    color: #ffffff !important;
}

@media (max-width: 760px) {
    .home-slider-cta {
        margin-top: 10px;
    }

    .home-slider-contact-button {
        min-width: 150px;
        min-height: 44px;
        padding: 9px 24px;
        font-size: 1rem;
    }
}

/* Hero CTA lighter button */
.home-slider-contact-button,
.home-slider-contact-button:visited {
    background: #EEE7FF !important;
    border: 1px solid rgba(91, 43, 191, 0.65) !important;
    color: #000000 !important;
    box-shadow: 0 12px 26px rgba(91, 43, 191, 0.12) !important;
}

.home-slider-contact-button:hover,
.home-slider-contact-button:focus-visible,
.home-slider-contact-button:active {
    background: #D9CCFF !important;
    border-color: #5B2BBF !important;
    color: #000000 !important;
}
