@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');

#aag-chatbot,
#aag-chatbot * {
    box-sizing: border-box;
}

#aag-chatbot [hidden] {
    display: none !important;
}

#aag-chatbot {
    --aag-purple: #1a0a3d;
    --aag-purple-dark: #120629;
    --aag-purple-light: #3d1a7a;
    --aag-gold: #c9a84c;
    --aag-gold-light: #e8c96a;
    --aag-cream: #fdf8ef;
    --aag-lilac: #f4f1fb;
    --aag-border: #e8e3ef;
    --aag-muted: #6b6875;
    --aag-width: 430px;
    --aag-font: 'Montserrat', Arial, sans-serif;
    font-family: var(--aag-font);
    color: var(--aag-purple);
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    font-size: 14px;
}

#aag-chatbot.aag-left {
    right: auto;
    left: 24px;
}

.aag-launcher {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid var(--aag-gold);
    border-radius: 50%;
    color: var(--aag-gold);
    background: radial-gradient(circle at 35% 25%, var(--aag-purple-light), var(--aag-purple) 70%);
    box-shadow: 0 10px 30px rgba(26, 10, 61, .28), 0 0 0 5px rgba(201, 168, 76, .12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.aag-launcher:hover,
.aag-launcher:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(26, 10, 61, .35), 0 0 0 6px rgba(201, 168, 76, .18);
}

.aag-launcher-logo,
.aag-guide-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.aag-launcher-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.aag-launcher-mark,
.aag-guide-mark {
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, .7);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 15px;
    letter-spacing: -.08em;
    width: 43px;
    height: 43px;
}

.aag-emblem {
    border-color: var(--aag-gold);
    background: transparent;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, .15);
}

.aag-emblem-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.aag-status-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #35d17d;
    box-shadow: 0 2px 5px rgba(18, 6, 41, .3);
    z-index: 2;
}

.aag-panel {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: min(var(--aag-width), calc(100vw - 32px));
    height: min(720px, calc(100vh - 110px));
    min-height: 480px;
    background: #fff;
    border: 1px solid rgba(26, 10, 61, .13);
    border-top: 4px solid var(--aag-gold);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(26, 10, 61, .27);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: aag-panel-in .2s ease-out;
}

.aag-left .aag-panel {
    right: auto;
    left: 0;
}

@keyframes aag-panel-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.aag-panel-header {
    min-height: 100px;
    padding: 20px 18px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background: radial-gradient(circle at 15% 15%, rgba(201, 168, 76, .2), transparent 35%), linear-gradient(135deg, var(--aag-purple) 0%, var(--aag-purple-light) 100%);
}

.aag-guide-identity {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.aag-guide-logo,
.aag-guide-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.aag-panel-header h2 {
    margin: 0;
    color: var(--aag-gold-light);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}

.aag-panel-header p {
    max-width: 275px;
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .76);
    font-family: Georgia, serif;
    font-size: 13px;
    font-style: italic;
    line-height: 1.3;
}

.aag-close,
.aag-modal-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(232, 201, 106, .55);
    border-radius: 50%;
    color: var(--aag-gold-light);
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 26px;
}

.aag-close:hover,
.aag-close:focus-visible,
.aag-modal-close:hover,
.aag-modal-close:focus-visible {
    background: rgba(232, 201, 106, .14);
}

.aag-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px 10px;
    background: linear-gradient(180deg, #fff 0%, #fefdfd 100%);
    scrollbar-color: var(--aag-gold) transparent;
}

.aag-message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 0 13px;
}

.aag-message-row--user {
    justify-content: flex-end;
}

.aag-message-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, .45);
    border-radius: 50%;
    color: var(--aag-gold);
    background: var(--aag-purple);
    font-family: Georgia, serif;
    font-size: 10px;
}

.aag-bubble {
    max-width: 86%;
    padding: 12px 14px;
    border: 1px solid var(--aag-border);
    border-radius: 16px 16px 16px 4px;
    color: var(--aag-purple);
    background: var(--aag-lilac);
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.4;
}

.aag-message-row--user .aag-bubble {
    border-color: transparent;
    border-radius: 16px 16px 4px 16px;
    color: var(--aag-purple);
    background: #f0eff4;
    font-family: var(--aag-font);
    font-size: 13px;
}

.aag-typing .aag-bubble {
    color: var(--aag-muted);
    font-family: var(--aag-font);
    font-size: 12px;
}

.aag-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 105px;
    overflow-y: auto;
    padding: 5px 14px 10px;
}

.aag-quick-reply,
.aag-login-button,
.aag-profile-button {
    appearance: none;
    border: 1px solid var(--aag-gold);
    border-radius: 999px;
    color: var(--aag-purple);
    background: #fff;
    cursor: pointer;
    font-family: var(--aag-font);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.aag-quick-reply {
    padding: 7px 11px;
}

.aag-quick-reply:hover,
.aag-quick-reply:focus-visible,
.aag-profile-button:hover,
.aag-profile-button:focus-visible {
    color: #fff;
    background: var(--aag-purple);
}

.aag-compose {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px 14px;
    border-top: 1px solid var(--aag-border);
    background: #fff;
}

.aag-compose textarea {
    min-height: 42px;
    max-height: 110px;
    flex: 1;
    resize: none;
    padding: 12px 14px;
    border: 1px solid #dcd7e5;
    border-radius: 22px;
    outline: none;
    color: var(--aag-purple);
    background: #f9f8fb;
    font-family: var(--aag-font);
    font-size: 13px;
}

.aag-compose textarea:focus {
    border-color: var(--aag-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .13);
}

.aag-compose textarea:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.aag-send {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--aag-purple);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.aag-send:hover,
.aag-send:focus-visible {
    color: var(--aag-purple);
    background: var(--aag-gold);
}

.aag-disclosure {
    margin: 0;
    padding: 0 16px 12px;
    color: var(--aag-muted);
    font-size: 10px;
    line-height: 1.45;
}

.aag-disclosure a {
    color: var(--aag-purple);
    text-decoration: underline;
}

.aag-disclosure button {
    margin-top: 7px;
    padding: 6px 10px;
    border: 1px solid var(--aag-purple);
    border-radius: 999px;
    color: var(--aag-purple);
    background: #fff;
    cursor: pointer;
    font: 700 10px var(--aag-font);
}

.aag-card {
    margin: 0 0 10px 36px;
    padding: 12px;
    border: 1px solid #e5e0eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(26, 10, 61, .07);
}

.aag-class-card {
    margin: 0 0 10px 36px;
    padding: 13px;
    border: 1px solid rgba(201, 168, 76, .42);
    border-radius: 13px;
    background: linear-gradient(145deg, #fffdf8, #fdf8ef);
    box-shadow: 0 3px 13px rgba(26, 10, 61, .07);
}

.aag-class-card-head {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.aag-class-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    color: var(--aag-gold-light);
    background: var(--aag-purple);
    font-size: 14px;
}

.aag-class-name {
    margin: 0;
    color: var(--aag-purple);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.aag-class-size {
    margin: 3px 0 0;
    color: var(--aag-gold);
    font-size: 10px;
    font-weight: 700;
}

.aag-class-reason {
    margin: 11px 0;
    color: #4f4b59;
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1.45;
}

.aag-class-link {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid var(--aag-purple);
    border-radius: 999px;
    color: var(--aag-purple);
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aag-class-link:hover,
.aag-class-link:focus-visible {
    color: #fff;
    background: var(--aag-purple);
}

.aag-card-top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aag-card-photo,
.aag-card-initials {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 2px solid var(--aag-gold-light);
    border-radius: 50%;
    object-fit: cover;
}

.aag-card-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aag-gold);
    background: var(--aag-purple);
    font-weight: 800;
}

.aag-card-name {
    margin: 0;
    color: var(--aag-purple);
    font-size: 13px;
    font-weight: 800;
}

.aag-card-role {
    margin: 2px 0 0;
    color: var(--aag-muted);
    font-size: 10px;
    line-height: 1.3;
}

.aag-card-reason {
    margin: 10px 0;
    color: var(--aag-purple);
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.35;
}

.aag-card-actions {
    display: flex;
    gap: 6px;
}

.aag-profile-button {
    flex: 1;
    padding: 8px 7px;
    border-radius: 8px;
    font-size: 10px;
}

.aag-login-button {
    display: inline-block;
    margin-top: 8px;
    padding: 9px 14px;
    color: var(--aag-gold-light);
    background: var(--aag-purple);
    text-decoration: none;
}

.aag-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 6, 41, .56);
}

.aag-modal {
    position: relative;
    width: min(430px, 100%);
    max-height: min(720px, 90vh);
    overflow-y: auto;
    padding: 0;
    border: 1px solid rgba(26, 10, 61, .14);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 6, 41, .4);
}

.aag-modal--profile {
    height: min(720px, 90vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aag-modal-content {
    padding: 25px;
}

.aag-modal-content--profile {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.aag-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(18, 6, 41, .24);
}

.aag-modal-content h3 {
    margin: 0 45px 3px 0;
    color: var(--aag-purple);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
}

.aag-modal-content h4 {
    margin: 0 0 12px;
    color: var(--aag-gold);
    font-size: 12px;
}

.aag-modal-content p,
.aag-modal-content li {
    color: #4f4b59;
    font-size: 13px;
    line-height: 1.55;
}

.aag-modal-content label {
    display: block;
    margin: 17px 0 6px;
    color: var(--aag-purple);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.aag-modal-content textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    padding: 10px;
    border: 1px solid var(--aag-border);
    border-radius: 9px;
    font: 13px var(--aag-font);
}

.aag-modal-content .aag-modal-submit {
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: 0;
    border-radius: 9px;
    color: var(--aag-gold-light);
    background: var(--aag-purple);
    cursor: pointer;
    font: 800 12px var(--aag-font);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.aag-modal-content .aag-modal-submit:hover,
.aag-modal-content .aag-modal-submit:focus-visible {
    color: var(--aag-purple);
    background: var(--aag-gold);
}

.aag-modal-status {
    margin-top: 10px;
    color: #166534;
    font-size: 12px;
}

/* Profile modal: intentionally shares the directory card's purple, gold,
 * cream, and compact editorial layout rather than looking like a generic
 * application dialog. */
.aag-member-profile {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--aag-purple);
    background: #fff;
    font-family: var(--aag-font);
}

.aag-member-profile-scroll {
    min-height: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.aag-member-cover {
    position: relative;
    z-index: 1;
    height: 80px;
    background: linear-gradient(135deg, var(--aag-purple) 0%, var(--aag-purple-light) 100%);
}

.aag-member-level {
    position: absolute;
    top: 12px;
    right: 14px;
    max-width: 58%;
    padding: 6px 12px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--aag-purple);
    background: var(--aag-gold-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.aag-member-head {
    position: relative;
    z-index: 2;
    padding: 0 20px 14px;
    text-align: center;
}

.aag-member-avatar {
    position: relative;
    z-index: 3;
    display: block;
    width: 78px;
    height: 78px;
    margin: -40px auto 8px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 16px rgba(18, 6, 41, .2);
}

.aag-member-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aag-gold-light);
    background: var(--aag-purple);
    font-size: 22px;
    font-weight: 800;
}

.aag-member-profile .aag-member-head h3 {
    margin: 0;
    color: var(--aag-purple);
    font-family: var(--aag-font);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.aag-member-profile .aag-member-tagline {
    margin: 3px 0 0;
    color: var(--aag-gold);
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.aag-member-profile-body {
    padding: 0 20px 24px;
}

.aag-member-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 7px;
    color: #6b6875;
    font-size: 13px;
    line-height: 1.35;
}

.aag-member-meta-row a,
.aag-member-inline-link {
    color: inherit;
    text-decoration: none;
}

.aag-member-meta-row a:hover,
.aag-member-meta-row a:focus-visible,
.aag-member-inline-link:hover,
.aag-member-inline-link:focus-visible {
    color: var(--aag-purple-light);
    text-decoration: underline;
}

.aag-member-meta-icon {
    width: 16px;
    flex: 0 0 16px;
    color: var(--aag-gold);
    font-size: 16px;
    line-height: 1.1;
    text-align: center;
}

.aag-member-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 16px;
}

.aag-member-pill {
    padding: 5px 10px;
    border: 1px solid #ddd8e3;
    border-radius: 999px;
    color: var(--aag-purple);
    background: #f8f6fb;
    font-size: 10px;
    font-weight: 700;
}

.aag-member-pill--speaker {
    border-color: #eadbb1;
    background: #fffaf0;
}

.aag-member-pill--author {
    border-color: #d6cfdf;
    background: #f4f1f7;
}

.aag-member-section {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e9e4ec;
}

.aag-member-profile .aag-member-copy,
.aag-member-profile .aag-member-network-box p:last-child {
    margin: 0;
    color: #625d6b;
    font-family: var(--aag-font);
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-line;
}

.aag-member-bio.is-collapsed {
    max-height: 6.2em;
    overflow: hidden;
}

.aag-member-bio.is-expanded {
    max-height: 1000px;
}

.aag-member-toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    color: var(--aag-gold);
    background: transparent;
    cursor: pointer;
    font: 800 11px var(--aag-font);
}

.aag-member-profile .aag-member-section-title {
    margin: 0 0 6px;
    color: var(--aag-purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.aag-member-networking {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9e4ec;
}

.aag-member-network-box {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #eadfca;
    border-radius: 9px;
    background: #fffaf1;
}

.aag-member-network-box .aag-member-section-title {
    color: var(--aag-gold);
    font-size: 10px;
}

.aag-member-network-box p:last-child {
    color: var(--aag-purple);
    font-size: 12px;
    line-height: 1.45;
}

.aag-member-social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9e4ec;
}

.aag-member-social {
    min-height: 57px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 3px;
    border: 1px solid #ddd8e3;
    border-radius: 9px;
    color: var(--aag-purple);
    background: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.aag-member-social strong {
    font-size: 20px;
    line-height: 1;
}

.aag-member-social:hover,
.aag-member-social:focus-visible {
    border-color: var(--aag-gold);
    color: var(--aag-purple);
    background: #fffaf0;
}

.aag-social-email strong,
.aag-social-email span { color: var(--aag-purple); }
.aag-social-website strong,
.aag-social-website span { color: #0c8294; }
.aag-social-linkedin strong,
.aag-social-linkedin span { color: #087aa5; }
.aag-social-instagram strong,
.aag-social-instagram span { color: #d93776; }
.aag-social-twitter strong,
.aag-social-twitter span { color: #111; }
.aag-social-youtube strong,
.aag-social-youtube span { color: #ef1d19; }
.aag-social-podcast strong,
.aag-social-podcast span { color: var(--aag-gold); }

.aag-member-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 9px;
    color: var(--aag-gold-light);
    background: var(--aag-purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.aag-member-book:hover,
.aag-member-book:focus-visible {
    color: var(--aag-purple);
    background: var(--aag-gold);
}

.aag-member-profile-actions {
    flex: 0 0 auto;
    padding: 10px 20px 20px;
    border-top: 1px solid #e9e4ec;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(18, 6, 41, .08);
}

.aag-member-profile-actions .aag-member-social-grid {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.aag-muted {
    color: var(--aag-muted) !important;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 640px) {
    body.aag-chat-open {
        overflow: hidden;
    }

    #aag-chatbot {
        right: 16px;
        bottom: 16px;
    }

    #aag-chatbot.aag-left {
        left: 16px;
        right: auto;
    }

    .aag-panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        max-height: none;
        min-height: 0;
        border: 0;
        border-top: 4px solid var(--aag-gold);
        border-radius: 0;
    }

    .aag-modal-backdrop {
        padding: 8px;
    }

    .aag-modal {
        max-height: 94vh;
        padding: 0;
    }

    .aag-modal--profile {
        height: 94vh;
        max-height: 94vh;
    }

    .aag-member-profile-actions {
        padding-right: 17px;
        padding-bottom: 17px;
        padding-left: 17px;
    }

    .aag-modal-content:not(.aag-modal-content--profile) {
        padding: 21px 17px;
    }
}
