/* AM Core – inherit theme fonts; Calibri stack when standalone */
body, button, input, select, textarea {
    font-family: Calibri, Carlito, "Segoe UI", Candara, Arial, sans-serif;
}

/* AM Core frontend styles */

.am-lang-switcher,
.am-lang-inline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}
.am-lang-switcher a,
.am-lang-inline a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
}
.am-lang-switcher li.active a,
.am-lang-inline li.active a {
    background: #1a365d;
    color: #fff;
}
.am-flag { font-size: 1.1em; line-height: 1; }

.am-lang-dropdown { position: relative; }
.am-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}
.am-lang-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 300;
}
.am-lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    text-decoration: none;
    color: #2d3748;
    font-size: 0.9rem;
}
.am-lang-menu a:hover { background: #edf2f7; }

.am-author-box {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.am-author-photo img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.am-author-works ul {
    margin: 8px 0 0;
    padding-left: 18px;
}
.am-form p { margin-bottom: 12px; }
.am-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.am-search-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
}
body.rtl .am-author-box { flex-direction: row-reverse; }

.am-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.am-member-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #edf2f7;
    text-align: center;
}
.am-member-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.am-member-position {
    margin: 4px 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a365d;
}

